COMFieldInfo.SetValue(Object, Object, BindingFlags, Binder, CultureInfo) Método
Definição
Define o valor do campo COM externo usando o COMMemberInfo que foi especificado para o método Initialize(String, COMMemberInfo).Sets the value of the external COM field by using the COMMemberInfo that was specified to the Initialize(String, COMMemberInfo) method.
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. Este parâmetro é ignorado.This parameter is ignored.
- value
- Object
O novo valor do membro COM externo.The new value of the external COM member.
- 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 objeto que converte o tipo do tipo de argumento real em tipo de argumento formal.An object that converts the type from actual argument type to formal argument type.
- 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.