ReliableSessionBindingElement.GetProperty<T>(BindingContext) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從其綁定上下文中取得指定類型的屬性。
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 的屬性。