Aracılığıyla paylaş


BlockScope.CreateField(String, FieldAttributes, Object) Yöntem

Tanım

Belirtilen adı, değeri ve öznitelikleri kullanarak yeni bir kapsam değişkeni oluşturur.

Bu API, ürün altyapısını destekler ve doğrudan kodunuzdan kullanıma yönelik değildir.

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

Parametreler

name
String

Alanın adı.

attributeFlags
FieldAttributes

Alanın özniteliklerini açıklayan numaralandırma değerlerinin bit düzeyinde birleşimi.

value
Object

Alanın değeri.

Döndürülenler

Belirtilen ada, değere ve özniteliklere sahip bir kapsam değişkeni.

Şunlara uygulanır

Ayrıca bkz.