SecurityBindingElement.GetProperty<T>(BindingContext) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用指定的对象获取指定的 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
未找到或找不到该对象的指定对象BindingContextnull。
注解
此方法从基类或该类的祖先之一获取指定对象。 返回的对象通常是属性的集合,例如实现 ISecurityCapabilities的对象。
SecurityBindingElement如果无法识别所请求的属性类型,它将委托对它下面的绑定元素堆栈的调用,并传递绑定上下文参数。 可以提供的属性 SecurityBindingElement 的类型和 ISecurityCapabilitiesIdentityVerifier。