IRemoteTypeContract.GetProperty 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回 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
。