Binding.GetProperty<T>(BindingParameterCollection) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個從綁定堆疊中適當層請求的類型物件(若存在)。
public:
generic <typename T>
where T : class T GetProperty(System::ServiceModel::Channels::BindingParameterCollection ^ parameters);
public T GetProperty<T>(System.ServiceModel.Channels.BindingParameterCollection parameters) where T : class;
member this.GetProperty : System.ServiceModel.Channels.BindingParameterCollection -> 'T (requires 'T : null)
Public Function GetProperty(Of T As Class) (parameters As BindingParameterCollection) As T
類型參數
- T
方法查詢的類型物件。
參數
- parameters
- BindingParameterCollection
BindingParameterCollection這會規定所建構的頻道聽眾需求。
傳回
T
該類型物件會被請求,該物件 T 是否存在 null 。
備註
如果某層支援回傳所請求的物件,則會回傳該物件。 如果沒有,則會將呼叫委派到堆疊的下一層。 如果它到達堆疊底部且沒有任何層支援該請求物件,則該方法會回傳 null。