JSFieldInfo.SetValue Método
Definição
Define o valor do campo.Sets the value of the field.
Sobrecargas
| SetValue(Object, Object) |
Esta API dá suporte à infraestrutura do produto e não deve ser usada diretamente do seu código. Define o valor do campo usando o valor especificado.Sets the value of the field, using the specified value. |
| SetValue(Object, Object, BindingFlags, Binder, CultureInfo) |
Esta API dá suporte à infraestrutura do produto e não deve ser usada diretamente do seu código. Define o valor do campo, usando o valor, a cultura e as informações de associação especificados.Sets the value of the field, using the specified value, culture, and binding information. |
SetValue(Object, Object)
Define o valor do campo usando o valor especificado.Sets the value of the field, using the specified value.
Esta API dá suporte à infraestrutura do produto e não deve ser usada diretamente do seu código.
public:
void SetValue(System::Object ^ obj, System::Object ^ value);
public void SetValue (object obj, object value);
override this.SetValue : obj * obj -> unit
Public Sub SetValue (obj As Object, value As Object)
Parâmetros
- obj
- Object
O objeto cujo valor de campo será definido.The object whose field value will be set.
- value
- Object
O valor a ser atribuído ao campo.The value to assign to the field.
Confira também
Aplica-se a
SetValue(Object, Object, BindingFlags, Binder, CultureInfo)
Define o valor do campo, usando o valor, a cultura e as informações de associação especificados.Sets the value of the field, using the specified value, culture, and binding information.
Esta API dá suporte à infraestrutura do produto e não deve ser usada diretamente do seu código.
public:
override void SetValue(System::Object ^ obj, System::Object ^ value, System::Reflection::BindingFlags invokeAttr, System::Reflection::Binder ^ binder, System::Globalization::CultureInfo ^ culture);
public override void SetValue (object obj, object value, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Globalization.CultureInfo culture);
override this.SetValue : obj * obj * System.Reflection.BindingFlags * System.Reflection.Binder * System.Globalization.CultureInfo -> unit
Public Overrides Sub SetValue (obj As Object, value As Object, invokeAttr As BindingFlags, binder As Binder, culture As CultureInfo)
Parâmetros
- obj
- Object
O objeto cujo valor de campo será definido.The object whose field value will be set.
- value
- Object
O valor a ser atribuído ao campo.The value to assign to the field.
- invokeAttr
- BindingFlags
Um combinação bit a bit dos valores de enumeração que controlam a associação.A bitwise combination of the enumeration values that control the binding.
- binder
- Binder
Um conjunto de propriedades que habilita a associação, coerção de tipos de argumento e invocação de membros usando a reflexão.A set of properties that enables the binding, coercion of argument types, and invocation of members through reflection.
- culture
- CultureInfo
Fornece informações sobre uma cultura ou localidade específica.Provides information about a specific culture or locale. Usado para formatar números, datas e cadeias de caracteres corretamente.Used to format numbers, dates, and strings correctly.