ModuleBuilder.GetConstructorToken Metoda

Definicja

Zwraca token używany do identyfikowania określonego konstruktora w tym module.

Przeciążenia

GetConstructorToken(ConstructorInfo)

Zwraca token używany do identyfikowania określonego konstruktora w tym module.

GetConstructorToken(ConstructorInfo, IEnumerable<Type>)

Zwraca token używany do identyfikowania konstruktora z określonymi atrybutami i typami parametrów w tym module.

GetConstructorToken(ConstructorInfo)

Zwraca token używany do identyfikowania określonego konstruktora w tym module.

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

Parametry

con
ConstructorInfo

Konstruktor umożliwiający uzyskanie tokenu.

Zwraca

Token używany do identyfikowania określonego konstruktora w tym module.

Atrybuty

Wyjątki

con to null.

Dotyczy

GetConstructorToken(ConstructorInfo, IEnumerable<Type>)

Zwraca token używany do identyfikowania konstruktora z określonymi atrybutami i typami parametrów w tym module.

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

Parametry

constructor
ConstructorInfo

Konstruktor umożliwiający uzyskanie tokenu.

optionalParameterTypes
IEnumerable<Type>

Kolekcja typów opcjonalnych parametrów konstruktora.

Zwraca

Token używany do identyfikowania określonego konstruktora w tym module.

Wyjątki

constructor to null.

Dotyczy