COMPropertyInfo.SetValue 方法

定义

使用 COMMemberInfo 指定的 Initialize(String, COMMemberInfo) 方法设置外部 COM 属性的值。

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 override void SetValue(System::Object ^ obj, System::Object ^ value, System::Reflection::BindingFlags invokeAttr, System::Reflection::Binder ^ binder, cli::array <System::Object ^> ^ index, System::Globalization::CultureInfo ^ culture);
public override void SetValue(object obj, object value, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, object[] index, System.Globalization.CultureInfo culture);
override this.SetValue : obj * obj * System.Reflection.BindingFlags * System.Reflection.Binder * obj[] * System.Globalization.CultureInfo -> unit
Public Overrides Sub SetValue (obj As Object, value As Object, invokeAttr As BindingFlags, binder As Binder, index As Object(), culture As CultureInfo)

参数

obj
Object

将设置其属性值的对象。 忽略此参数。

value
Object

外部 COM 成员的新值。

invokeAttr
BindingFlags

控制绑定的枚举值的按位组合。

binder
Binder

一个对象,该对象将类型从实际参数类型转换为正式参数类型。

index
Object[]

要传递给外部 COM 属性的参数列表。

culture
CultureInfo

提供有关特定区域性或区域设置的信息。 用于正确设置数字、日期和字符串的格式。

适用于

另请参阅