共用方式為


IRemotePropertyInfoContract.GetValue 方法

定義

傳回這個 IRemotePropertyInfoContract 所識別屬性的值。

public:
 System::AddIn::Contract::RemoteArgument GetValue(System::AddIn::Contract::Automation::IRemoteObjectContract ^ obj, System::Reflection::BindingFlags bindingFlags, System::AddIn::Contract::Collections::IRemoteArgumentArrayContract ^ index, int localeId);
public System.AddIn.Contract.RemoteArgument GetValue (System.AddIn.Contract.Automation.IRemoteObjectContract obj, System.Reflection.BindingFlags bindingFlags, System.AddIn.Contract.Collections.IRemoteArgumentArrayContract index, int localeId);
abstract member GetValue : System.AddIn.Contract.Automation.IRemoteObjectContract * System.Reflection.BindingFlags * System.AddIn.Contract.Collections.IRemoteArgumentArrayContract * int -> System.AddIn.Contract.RemoteArgument
Public Function GetValue (obj As IRemoteObjectContract, bindingFlags As BindingFlags, index As IRemoteArgumentArrayContract, localeId As Integer) As RemoteArgument

參數

obj
IRemoteObjectContract

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

bindingFlags
BindingFlags

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

index
IRemoteArgumentArrayContract

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

localeId
Int32

地區設定 ID,可用於屬性執行的地區設定特性轉換。

傳回

RemoteArgument,指定屬性值。

備註

如果屬性為唯寫,則建議 GetValue 實作擲回 ArgumentException

適用於