Edit

Share via


IRemotePropertyInfoContract.SetValue Method

Definition

Sets the value of the property that this IRemotePropertyInfoContract identifies.

public:
 void SetValue(System::AddIn::Contract::Automation::IRemoteObjectContract ^ target, System::AddIn::Contract::RemoteArgument % value, System::Reflection::BindingFlags bindingFlags, System::AddIn::Contract::Collections::IRemoteArgumentArrayContract ^ index, int localeId);
public void SetValue (System.AddIn.Contract.Automation.IRemoteObjectContract target, ref System.AddIn.Contract.RemoteArgument value, System.Reflection.BindingFlags bindingFlags, System.AddIn.Contract.Collections.IRemoteArgumentArrayContract index, int localeId);
abstract member SetValue : System.AddIn.Contract.Automation.IRemoteObjectContract * RemoteArgument * System.Reflection.BindingFlags * System.AddIn.Contract.Collections.IRemoteArgumentArrayContract * int -> unit
Public Sub SetValue (target As IRemoteObjectContract, ByRef value As RemoteArgument, bindingFlags As BindingFlags, index As IRemoteArgumentArrayContract, localeId As Integer)

Parameters

target
IRemoteObjectContract

The IRemoteObjectContract that identifies the object that contains the property.

value
RemoteArgument

A RemoteArgument that specifies the property value.

bindingFlags
BindingFlags

A bitwise combination of the BindingFlags values that specifies how to invoke the property.

index
IRemoteArgumentArrayContract

An IRemoteArgumentArrayContract that specifies the index values for an indexed property; null if the property is not indexed.

localeId
Int32

The locale ID that the property will use for any locale-specific type conversions.

Remarks

It is recommended that SetValue implementations throw an ArgumentException if the property is read-only.

Applies to