System.Diagnostics.SymbolStore.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.

Syntax

public void DefineParameter (string name, System.Reflection.ParameterAttributes attributes, int sequence, SymAddressKind addrKind, int addr1, int addr2, int addr3)

Parameters

name
The parameter name.
attributes
A bitwise combination of the parameter attributes.
sequence
The parameter signature.
addrKind
The address types for addr1, addr2, and addr3.
addr1
The first address for the parameter specification.
addr2
The second address for the parameter specification.
addr3
The third address for the parameter specification.

Remarks

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.

Requirements

Namespace: System.Diagnostics.SymbolStore
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0