ActivationObject.CreateField(String, FieldAttributes, Object) Metodo

Definizione

Crea una nuova variabile globale usando il nome, il valore e gli attributi specificati.

Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice.

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

Parametri

name
String

Nome del campo.

attributeFlags
FieldAttributes

Combinazione bit per bit dei valori di enumerazione che descrivono gli attributi di un campo. Static viene aggiunto automaticamente.

value
Object

Valore del campo .

Valori restituiti

Variabile globale con il nome, il valore e gli attributi specificati.

Si applica a

Vedi anche