Share via


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.

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.

attributeFlags
FieldAttributes

Uma combinação bit a bit dos valores de enumeração que descrevem os atributos do campo.

value
Object

O valor do campo.

Retornos

Uma variável de escopo que tem o nome, o valor e os atributos especificados.

Aplica-se a

Confira também