ActivationObject.CreateField(String, FieldAttributes, Object) Methode

Definition

Erstellt eine neue globale Variable 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:
 virtual Microsoft::JScript::JSVariableField ^ CreateField(System::String ^ name, System::Reflection::FieldAttributes attributeFlags, System::Object ^ value);
protected virtual Microsoft.JScript.JSVariableField CreateField(string name, System.Reflection.FieldAttributes attributeFlags, object value);
abstract member CreateField : string * System.Reflection.FieldAttributes * obj -> Microsoft.JScript.JSVariableField
override this.CreateField : string * System.Reflection.FieldAttributes * obj -> Microsoft.JScript.JSVariableField
Protected Overridable 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 eines Felds beschreiben. Static wird automatisch hinzugefügt.

value
Object

Der Wert des -Felds.

Gibt zurück

Eine globale Variable mit dem angegebenen Namen, Wert und Attributen.

Gilt für:

Weitere Informationen