ReliableSessionBindingElement.GetProperty<T>(BindingContext) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从其绑定上下文中获取指定类型的属性。
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
具有指定T类型context或null找不到类型属性的类型T的属性。