ModuleBuilder.GetConstructorToken 方法

定義

傳回語彙基元,用來在這個模組中識別指定的建構函式。

多載

GetConstructorToken(ConstructorInfo)

傳回語彙基元,用來在這個模組中識別指定的建構函式。

GetConstructorToken(ConstructorInfo, IEnumerable<Type>)

傳回語彙基元,用來識別在這個模組中具有指定屬性和參數型別的建構函式。

GetConstructorToken(ConstructorInfo)

傳回語彙基元,用來在這個模組中識別指定的建構函式。

public:
 System::Reflection::Emit::MethodToken GetConstructorToken(System::Reflection::ConstructorInfo ^ con);
public System.Reflection.Emit.MethodToken GetConstructorToken (System.Reflection.ConstructorInfo con);
[System.Runtime.InteropServices.ComVisible(true)]
public System.Reflection.Emit.MethodToken GetConstructorToken (System.Reflection.ConstructorInfo con);
member this.GetConstructorToken : System.Reflection.ConstructorInfo -> System.Reflection.Emit.MethodToken
[<System.Runtime.InteropServices.ComVisible(true)>]
member this.GetConstructorToken : System.Reflection.ConstructorInfo -> System.Reflection.Emit.MethodToken
Public Function GetConstructorToken (con As ConstructorInfo) As MethodToken

參數

con
ConstructorInfo

要為其取得語彙基元的建構函式。

傳回

語彙基元,用來在這個模組中識別指定的建構函式。

屬性

例外狀況

connull

適用於

GetConstructorToken(ConstructorInfo, IEnumerable<Type>)

傳回語彙基元,用來識別在這個模組中具有指定屬性和參數型別的建構函式。

public:
 System::Reflection::Emit::MethodToken GetConstructorToken(System::Reflection::ConstructorInfo ^ constructor, System::Collections::Generic::IEnumerable<Type ^> ^ optionalParameterTypes);
public System.Reflection.Emit.MethodToken GetConstructorToken (System.Reflection.ConstructorInfo constructor, System.Collections.Generic.IEnumerable<Type> optionalParameterTypes);
member this.GetConstructorToken : System.Reflection.ConstructorInfo * seq<Type> -> System.Reflection.Emit.MethodToken
Public Function GetConstructorToken (constructor As ConstructorInfo, optionalParameterTypes As IEnumerable(Of Type)) As MethodToken

參數

constructor
ConstructorInfo

要為其取得語彙基元的建構函式。

optionalParameterTypes
IEnumerable<Type>

建構函式選擇性參數之型別的集合。

傳回

語彙基元,用來在這個模組中識別指定的建構函式。

例外狀況

constructornull

適用於