ModuleBuilder.GetConstructorToken Metode

Definisi

Mengembalikan token yang digunakan untuk mengidentifikasi konstruktor yang ditentukan dalam modul ini.

Overload

Nama Deskripsi
GetConstructorToken(ConstructorInfo)

Mengembalikan token yang digunakan untuk mengidentifikasi konstruktor yang ditentukan dalam modul ini.

GetConstructorToken(ConstructorInfo, IEnumerable<Type>)

Mengembalikan token yang digunakan untuk mengidentifikasi konstruktor yang memiliki atribut dan jenis parameter yang ditentukan dalam modul ini.

GetConstructorToken(ConstructorInfo)

Mengembalikan token yang digunakan untuk mengidentifikasi konstruktor yang ditentukan dalam modul ini.

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

Parameter

con
ConstructorInfo

Konstruktor untuk mendapatkan token.

Mengembalikan

Token yang digunakan untuk mengidentifikasi konstruktor yang ditentukan dalam modul ini.

Atribut

Pengecualian

con adalah null.

Berlaku untuk

GetConstructorToken(ConstructorInfo, IEnumerable<Type>)

Mengembalikan token yang digunakan untuk mengidentifikasi konstruktor yang memiliki atribut dan jenis parameter yang ditentukan dalam modul ini.

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

Parameter

constructor
ConstructorInfo

Konstruktor untuk mendapatkan token.

optionalParameterTypes
IEnumerable<Type>

Kumpulan jenis parameter opsional ke konstruktor.

Mengembalikan

Token yang digunakan untuk mengidentifikasi konstruktor yang ditentukan dalam modul ini.

Pengecualian

constructor adalah null.

Berlaku untuk