ISymbolWriter.DefineParameter Method (String, ParameterAttributes, Int32, SymAddressKind, Int32, Int32, Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
)

Parameters

name
Type: System.String

The parameter name.

attributes
Type: System.Reflection.ParameterAttributes

A bitwise combination of the parameter attributes.

sequence
Type: System.Int32

The parameter signature.

addrKind
Type: System.Diagnostics.SymbolStore.SymAddressKind

The address types for addr1, addr2, and addr3.

addr1
Type: System.Int32

The first address for the parameter specification.

addr2
Type: System.Int32

The second address for the parameter specification.

addr3
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.

.NET Framework
Available since 1.1
Return to top
Show: