次の方法で共有


BlockScope.CreateField(String, FieldAttributes, Object) メソッド

定義

指定した名前、値、および属性を使用して、新しいスコープ変数を作成します。

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

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

パラメーター

name
String

フィールドの名前。

attributeFlags
FieldAttributes

フィールドの属性を記述する列挙値のビットごとの組み合わせ。

value
Object

フィールドの値。

戻り値

JSVariableField

指定した名前、値、および属性を持つスコープ変数。

適用対象

こちらもご覧ください