BlockScope.CreateField(String, FieldAttributes, Object) Méthode

Définition

Crée une variable de portée à 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 d'opérations de bits des valeurs d'énumération qui décrivent les attributs du champ.

value
Object

Valeur du champ.

Retours

Variable de portée qui comporte le nom, la valeur et les attributs spécifiés.

S’applique à

Voir aussi