Share via


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

适用于