语言

MsmqBindingElementBase.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对象。

例外

上下文为 null.

注解

提供从元素检索功能和保护要求的功能。

适用于