語言

ReliableSessionBindingElement.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

若找不到 的T屬性,則 為 contextnullT 的屬性。

適用於