IRemotePropertyInfoContract.GetValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.
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.