ActivationObject.CreateField(String, FieldAttributes, Object) Metod

Definition

Skapar en ny global variabel med det angivna namnet, värdet och attributen.

Detta API stöder produktinfrastrukturen och är inte avsett att användas direkt från koden.

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

Parametrar

name
String

Namnet på fältet.

attributeFlags
FieldAttributes

En bitvis kombination av uppräkningsvärdena som beskriver attributen för ett fält. Static läggs till automatiskt.

value
Object

Värdet för fältet.

Returer

En global variabel som har det angivna namnet, värdet och attributen.

Gäller för

Se även