ModuleBuilder.GetConstructorToken Metodo

Definizione

Restituisce il token utilizzato per identificare il costruttore specificato all'interno di questo modulo.

Overload

Nome Descrizione
GetConstructorToken(ConstructorInfo)

Restituisce il token utilizzato per identificare il costruttore specificato all'interno di questo modulo.

GetConstructorToken(ConstructorInfo, IEnumerable<Type>)

Restituisce il token utilizzato per identificare il costruttore con gli attributi e i tipi di parametro specificati all'interno di questo modulo.

GetConstructorToken(ConstructorInfo)

Restituisce il token utilizzato per identificare il costruttore specificato all'interno di questo modulo.

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

Parametri

con
ConstructorInfo

Costruttore per cui ottenere un token.

Valori restituiti

Token usato per identificare il costruttore specificato all'interno di questo modulo.

Attributi

Eccezioni

con è null.

Si applica a

GetConstructorToken(ConstructorInfo, IEnumerable<Type>)

Restituisce il token utilizzato per identificare il costruttore con gli attributi e i tipi di parametro specificati all'interno di questo modulo.

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

Parametri

constructor
ConstructorInfo

Costruttore per cui ottenere un token.

optionalParameterTypes
IEnumerable<Type>

Raccolta dei tipi dei parametri facoltativi per il costruttore.

Valori restituiti

Token usato per identificare il costruttore specificato all'interno di questo modulo.

Eccezioni

constructor è null.

Si applica a