ModuleBuilder.GetConstructorToken Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne le jeton utilisé pour identifier le constructeur spécifié dans ce module.
Surcharges
| Nom | Description |
|---|---|
| GetConstructorToken(ConstructorInfo) |
Retourne le jeton utilisé pour identifier le constructeur spécifié dans ce module. |
| GetConstructorToken(ConstructorInfo, IEnumerable<Type>) |
Retourne le jeton utilisé pour identifier le constructeur qui a les attributs et les types de paramètres spécifiés dans ce module. |
GetConstructorToken(ConstructorInfo)
Retourne le jeton utilisé pour identifier le constructeur spécifié dans ce 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
Paramètres
- con
- ConstructorInfo
Constructeur pour lequel obtenir un jeton.
Retours
Jeton utilisé pour identifier le constructeur spécifié dans ce module.
- Attributs
Exceptions
con a la valeur null.
S’applique à
GetConstructorToken(ConstructorInfo, IEnumerable<Type>)
Retourne le jeton utilisé pour identifier le constructeur qui a les attributs et les types de paramètres spécifiés dans ce 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
Paramètres
- constructor
- ConstructorInfo
Constructeur pour lequel obtenir un jeton.
- optionalParameterTypes
- IEnumerable<Type>
Collection des types des paramètres facultatifs au constructeur.
Retours
Jeton utilisé pour identifier le constructeur spécifié dans ce module.
Exceptions
constructor a la valeur null.