BlockScope.CreateField(String, FieldAttributes, Object) 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.
Crée une variable d’étendue à l’aide du nom, de la valeur et des attributs spécifiés.
Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.
protected:
override Microsoft::JScript::JSVariableField ^ CreateField(System::String ^ name, System::Reflection::FieldAttributes attributeFlags, System::Object ^ value);
protected override Microsoft.JScript.JSVariableField CreateField(string name, System.Reflection.FieldAttributes attributeFlags, object value);
override this.CreateField : string * System.Reflection.FieldAttributes * obj -> Microsoft.JScript.JSVariableField
Protected Overrides Function CreateField (name As String, attributeFlags As FieldAttributes, value As Object) As JSVariableField
Paramètres
- name
- String
Nom du champ.
- attributeFlags
- FieldAttributes
Combinaison au niveau du bit des valeurs d’énumération qui décrivent les attributs du champ.
- value
- Object
La valeur du champ .
Retours
Variable d’étendue qui a le nom, la valeur et les attributs spécifiés.