แก้ไข

แชร์ผ่าน


COMPropertyInfo.SetValue Method

Definition

Sets the value of the external COM property by using the COMMemberInfo that was specified to the Initialize(String, COMMemberInfo) method.

This API supports the product infrastructure and is not intended to be used directly from your code.

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)

Parameters

obj
Object

The object whose property value will be set. This parameter is ignored.

value
Object

The new value of the external COM member.

invokeAttr
BindingFlags

A bitwise combination of the enumeration values that control the binding.

binder
Binder

An object that converts the type from actual argument type to formal argument type.

index
Object[]

The argument list to pass to the external COM property.

culture
CultureInfo

Provides information about a specific culture or locale. Used to format numbers, dates, and strings correctly.

Applies to

See also