ContextBindingElement.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 (如果存在的話)。

例外狀況

contextnull

適用於