IRemoteTypeContract.GetProperty 方法

定义

返回一个 IRemotePropertyInfoContract,它提供对当前 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

参数

name
String

当前 IRemoteTypeContract 的属性的名称。

bindingFlags
BindingFlags

BindingFlags 值的一个按位组合,用于指定搜索方法的方式。

remoteReturnType
IRemoteTypeContract

一个 IRemoteTypeContract,它指定属性的返回类型。

remoteTypes
IArrayContract<IRemoteTypeContract>

IArrayContract<C> 对象的 IRemoteTypeContract,表示指定属性的参数。

返回

如果找到指定属性,则为一个提供对该属性的访问的 IRemotePropertyInfoContract;否则为 null

适用于