BlockScope.CreateField(String, FieldAttributes, Object) Metódus

Definíció

Létrehoz egy új hatókörváltozót a megadott név, érték és attribútumok használatával.

Ez az API a termékinfrastruktúrát támogatja, és közvetlenül a kódból nem használható.

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éterek

name
String

A mező neve.

attributeFlags
FieldAttributes

A mező attribútumait leíró enumerálási értékek bitenkénti kombinációja.

value
Object

A mező értéke.

Válaszok

A megadott névvel, értékkel és attribútumokkal rendelkező hatókörváltozó.

A következőre érvényes:

Lásd még