Edit

Share via


ISymbolWriter.DefineParameter Method

Definition

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

public:
 void DefineParameter(System::String ^ name, System::Reflection::ParameterAttributes attributes, int sequence, System::Diagnostics::SymbolStore::SymAddressKind addrKind, int addr1, int addr2, int addr3);
public void DefineParameter (string name, System.Reflection.ParameterAttributes attributes, int sequence, System.Diagnostics.SymbolStore.SymAddressKind addrKind, int addr1, int addr2, int addr3);
abstract member DefineParameter : string * System.Reflection.ParameterAttributes * int * System.Diagnostics.SymbolStore.SymAddressKind * int * int * int -> unit
Public Sub DefineParameter (name As String, attributes As ParameterAttributes, sequence As Integer, addrKind As SymAddressKind, addr1 As Integer, addr2 As Integer, addr3 As Integer)

Parameters

name
String

The parameter name.

attributes
ParameterAttributes

A bitwise combination of the parameter attributes.

sequence
Int32

The parameter signature.

addrKind
SymAddressKind

The address types for addr1, addr2, and addr3.

addr1
Int32

The first address for the parameter specification.

addr2
Int32

The second address for the parameter specification.

addr3
Int32

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.

Applies to