語言

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

地址類型 addr1分別為 、 addr2、 addr3和 。

addr1
Int32

參數規格的第一個地址。

addr2
Int32

參數規格的第二個地址。

addr3
Int32

參數指定的第三個地址。

備註

如果某方法的元資料中定義了參數,你不需要透過呼叫該方法重新定義參數。 符號讀取器需先在一般的元資料中檢查這些,然後再使用符號儲存。

適用於