BlockScope.CreateField(String, FieldAttributes, Object) Metoda

Definicja

Tworzy nową zmienną zakresu przy użyciu określonej nazwy, wartości i atrybutów.

Ten interfejs API obsługuje infrastrukturę produktu i nie jest przeznaczony do użycia bezpośrednio z poziomu kodu.

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

Parametry

name
String

Nazwa pola.

attributeFlags
FieldAttributes

Bitowa kombinacja wartości wyliczenia opisujących atrybuty pola.

value
Object

Wartość pola.

Zwraca

Zmienna zakresu, która ma określoną nazwę, wartość i atrybuty.

Dotyczy

Zobacz też