Type.TypeInitializer Propriété
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.
Obtient l'initialiseur du type.
public:
property System::Reflection::ConstructorInfo ^ TypeInitializer { System::Reflection::ConstructorInfo ^ get(); };
public System.Reflection.ConstructorInfo? TypeInitializer { get; }
public System.Reflection.ConstructorInfo TypeInitializer { get; }
[System.Runtime.InteropServices.ComVisible(true)]
public System.Reflection.ConstructorInfo TypeInitializer { get; }
member this.TypeInitializer : System.Reflection.ConstructorInfo
[<System.Runtime.InteropServices.ComVisible(true)>]
member this.TypeInitializer : System.Reflection.ConstructorInfo
Public ReadOnly Property TypeInitializer As ConstructorInfo
Valeur de propriété
Objet contenant le nom du constructeur de classe pour Type.
Implémente
- Attributs
Remarques
Les initialiseurs de classe sont également disponibles par le biais de la FindMembers méthode, ou par des surcharges du GetMember, GetMembers, GetConstructoret GetConstructors des méthodes qui prennent BindingFlags en tant que paramètre.
Si le courant Type représente un paramètre de type dans la définition d’un type générique ou d’une méthode générique, cette propriété retourne null
.