語言

OneWayBindingElement.GetProperty<T>(BindingContext) 方法

定義

如果有綁定堆疊的屬性,則會取得。

public:
generic <typename T>
 where T : class override T GetProperty(System::ServiceModel::Channels::BindingContext ^ context);
public override T GetProperty<T>(System.ServiceModel.Channels.BindingContext context) where T : class;
override this.GetProperty : System.ServiceModel.Channels.BindingContext -> 'T (requires 'T : null)
Public Overrides Function GetProperty(Of T As Class) (context As BindingContext) As T

類型參數

T

屬性的類型。

參數

context
BindingContext

BindingContext那就為綁定元素提供了背景。

傳回

T

如果存在的話,是 T 綁定堆疊中的一個物件。

備註

此方法接收一個綁定上下文作為輸入參數,代表綁定元素的堆疊。

堆疊中的每個綁定元素可以處理查詢本身,或委託查詢,或兩者結合。 每個綁定元素若委派查詢,則可修改上下文。 然而,傳輸綁定元件會處理查詢本身。

此方法透過綁定元素以及執行時物件(如 IChannelFactory、 IChannelListener、 IChannel和 )來實作。

適用於