语言

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

绑定上下文。

返回

T

如果存在,则为指定类型的对象,否则 null为 。

适用于