ISymbolWriter.DefineParameter(String, ParameterAttributes, Int32, SymAddressKind, Int32, Int32, Int32) 方法
定义
在当前方法中定义单个参数。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)
参数
- name
- String
参数名称。The parameter name.
- attributes
- ParameterAttributes
参数特性的按位组合。A bitwise combination of the parameter attributes.
- sequence
- Int32
参数签名。The parameter signature.
- addrKind
- SymAddressKind
addr1、addr2 和 addr3 的地址类型。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.
注解
如果在给定方法的元数据中定义了参数,则不必再次使用对此方法的调用来定义这些参数。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.