ActivationObject.CreateField(String, FieldAttributes, Object) 方法

定義

建立一個新的全域變數,使用指定的名稱、值和屬性。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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

參數

name
String

欄位的名稱。

attributeFlags
FieldAttributes

描述欄位屬性的列舉值的位元組合。 Static 會自動新增。

value
Object

欄位的值。

傳回

一個全域變數,具有指定的名稱、值和屬性。

適用於

另請參閱