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

參數規格的第三個位址。

備註

如果在指定方法的元數據中定義參數,您就不需要使用對此方法的呼叫再次定義參數。 符號讀取器必須先在一般元數據中檢查這些項目,然後使用符號存放區。

適用於