通过


WebMessageEncodingBindingElement.GetProperty<T>(BindingContext) 方法

定义

从通道堆栈中的相应层返回所请求的类型的对象(如果存在)或 null 不存在。

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

如果存在null或不存在,则请求的类型化对象T

例外

context set is null.

注解

此重写将一个属性添加到基GetProperty<T>(BindingContext)实现:何时TXmlDictionaryReaderQuotas返回该ReaderQuotas属性。

适用于