BlockScope.CreateField(String, FieldAttributes, Object) Método

Definição

Cria uma nova variável de escopo, usando o nome, o valor e os atributos especificados.Creates a new scope variable, using the specified name, value, and attributes.

Esta API dá suporte à infraestrutura do produto e não deve ser usada diretamente do seu código.

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

Parâmetros

name
String

O nome do campo.The name of the field.

attributeFlags
FieldAttributes

Uma combinação bit a bit dos valores de enumeração que descrevem os atributos do campo.A bitwise combination of the enumeration values that describe the attributes of the field.

value
Object

O valor do campo.The value of the field.

Retornos

JSVariableField

Uma variável de escopo que tem o nome, o valor e os atributos especificados.A scope variable that has the specified name, value, and attributes.

Aplica-se a

Confira também