ModuleBuilder.GetConstructorToken Methode

Definitie

Retourneert het token dat wordt gebruikt om de opgegeven constructor in deze module te identificeren.

Overloads

Name Description
GetConstructorToken(ConstructorInfo)

Retourneert het token dat wordt gebruikt om de opgegeven constructor in deze module te identificeren.

GetConstructorToken(ConstructorInfo, IEnumerable<Type>)

Retourneert het token dat wordt gebruikt om de constructor te identificeren met de opgegeven kenmerken en parametertypen in deze module.

GetConstructorToken(ConstructorInfo)

Retourneert het token dat wordt gebruikt om de opgegeven constructor in deze module te identificeren.

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

Parameters

con
ConstructorInfo

De constructor waarvoor een token moet worden opgehaald.

Retouren

Het token dat wordt gebruikt om de opgegeven constructor in deze module te identificeren.

Kenmerken

Uitzonderingen

con is null.

Van toepassing op

GetConstructorToken(ConstructorInfo, IEnumerable<Type>)

Retourneert het token dat wordt gebruikt om de constructor te identificeren met de opgegeven kenmerken en parametertypen in deze 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

Parameters

constructor
ConstructorInfo

De constructor waarvoor een token moet worden opgehaald.

optionalParameterTypes
IEnumerable<Type>

Een verzameling van de typen optionele parameters voor de constructor.

Retouren

Het token dat wordt gebruikt om de opgegeven constructor in deze module te identificeren.

Uitzonderingen

constructor is null.

Van toepassing op