Edit

Share via


IRemoteTypeContract.GetProperty Method

Definition

Returns an IRemotePropertyInfoContract that provides access to a specified property of the current IRemoteTypeContract.

public:
 System::AddIn::Contract::Automation::IRemotePropertyInfoContract ^ GetProperty(System::String ^ name, System::Reflection::BindingFlags bindingFlags, System::AddIn::Contract::Automation::IRemoteTypeContract ^ remoteReturnType, System::AddIn::Contract::Collections::IArrayContract<System::AddIn::Contract::Automation::IRemoteTypeContract ^> ^ remoteTypes);
public System.AddIn.Contract.Automation.IRemotePropertyInfoContract GetProperty (string name, System.Reflection.BindingFlags bindingFlags, System.AddIn.Contract.Automation.IRemoteTypeContract remoteReturnType, System.AddIn.Contract.Collections.IArrayContract<System.AddIn.Contract.Automation.IRemoteTypeContract> remoteTypes);
abstract member GetProperty : string * System.Reflection.BindingFlags * System.AddIn.Contract.Automation.IRemoteTypeContract * System.AddIn.Contract.Collections.IArrayContract<System.AddIn.Contract.Automation.IRemoteTypeContract> -> System.AddIn.Contract.Automation.IRemotePropertyInfoContract
Public Function GetProperty (name As String, bindingFlags As BindingFlags, remoteReturnType As IRemoteTypeContract, remoteTypes As IArrayContract(Of IRemoteTypeContract)) As IRemotePropertyInfoContract

Parameters

name
String

The name of a property of the current IRemoteTypeContract.

bindingFlags
BindingFlags

A bitwise combination of the BindingFlags values that specifies how to search for the method.

remoteReturnType
IRemoteTypeContract

An IRemoteTypeContract that specifies the return type of the property.

remoteTypes
IArrayContract<IRemoteTypeContract>

An IArrayContract<C> of IRemoteTypeContract objects that represent the parameters for the specified property.

Returns

An IRemotePropertyInfoContract that provides access to the specified property, if found; otherwise, null.

Applies to