ערוך

שתף באמצעות


IRemotePropertyInfoContract.GetValue Method

Definition

Returns the value of the property that this IRemotePropertyInfoContract identifies.

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

Parameters

obj
IRemoteObjectContract

The IRemoteObjectContract that identifies the object that contains the property.

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

A locale ID to use for locale-specific conversions that are performed by the property.

Returns

A RemoteArgument that specifies the property value.

Remarks

It is recommended that GetValue implementations throw an ArgumentException if the property is write-only.

Applies to