This documentation is archived and is not being maintained.

ISymbolWriter.DefineParameter Method

Defines a single parameter in the current method. The type of each parameter is taken from its position within the signature of the method.

Namespace:  System.Diagnostics.SymbolStore
Assembly:  mscorlib (in mscorlib.dll)

void DefineParameter(
	string name,
	ParameterAttributes attributes,
	int sequence,
	SymAddressKind addrKind,
	int addr1,
	int addr2,
	int addr3


Type: System.String

The parameter name.

Type: System.Reflection.ParameterAttributes

A bitwise combination of the parameter attributes.

Type: System.Int32

The parameter signature.

Type: System.Diagnostics.SymbolStore.SymAddressKind

The address types for addr1, addr2, and addr3.

Type: System.Int32

The first address for the parameter specification.

Type: System.Int32

The second address for the parameter specification.

Type: System.Int32

The third address for the parameter specification.

If parameters are defined in the metadata for a given method, you do not have to define them again with calls to this method. Symbol readers need to check for these in the normal metadata first, and then use the symbol store.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0, 1.1, 1.0