共用方式為


IRemotePropertyInfoContract.SetValue 方法

定義

設定這個 IRemotePropertyInfoContract 所識別屬性的值。

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)

參數

target
IRemoteObjectContract

IRemoteObjectContract,識別包含屬性的物件。

value
RemoteArgument

RemoteArgument,指定屬性值。

bindingFlags
BindingFlags

BindingFlags 值的位元組合,指定叫用屬性的方式。

index
IRemoteArgumentArrayContract

IRemoteArgumentArrayContract,指定索引屬性的索引值,如果未對屬性進行索引,則為 null

localeId
Int32

地區設定 ID,屬性將使用它來進行任何地區設定特性的型別轉換。

備註

如果屬性是唯讀的, SetValue 則建議實作擲回 ArgumentException

適用於