BlockScope.CreateField(String, FieldAttributes, Object) Methode

Definition

Erstellt eine neue Bereichsvariable mit dem angegebenen Namen, Wert und Attributen.

Diese API unterstützt die Produktinfrastruktur und ist nicht für die direkte Verwendung aus Ihrem Code gedacht.

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

Parameter

name
String

Der Name des Felds.

attributeFlags
FieldAttributes

Eine bitweise Kombination der Enumerationswerte, die die Attribute des Felds beschreiben.

value
Object

Der Wert des -Felds.

Gibt zurück

Eine Bereichsvariable mit dem angegebenen Namen, Wert und Attributen.

Gilt für:

Weitere Informationen