BlockScope.CreateField(String, FieldAttributes, Object) Metodo

Definizione

Crea una nuova variabile di ambito, con 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:
 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

Parametri

name
String

Nome del campo.

attributeFlags
FieldAttributes

Combinazione bit per bit dei valori di enumerazione che descrivono gli attributi del campo.

value
Object

Valore del campo.

Restituisce

Variabile di campo avente il nome, il valore e gli attributi specificati.

Si applica a

Vedi anche