ISymbolWriter.DefineParameter 方法

定义

在当前方法中定义单个参数。 每个参数的类型取自方法签名中的位置。

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)

参数

name
String

参数名称。

attributes
ParameterAttributes

参数属性的按位组合。

sequence
Int32

参数签名。

addrKind
SymAddressKind

和 . 的地址类型addr1addr2addr3

addr1
Int32

参数规范的第一个地址。

addr2
Int32

参数规范的第二个地址。

addr3
Int32

参数规范的第三个地址。

注解

如果在给定方法的元数据中定义了参数,则无需使用对此方法的调用再次定义这些参数。 符号读取器首先需要在普通元数据中检查这些内容,然后使用符号存储。

适用于