SslStreamSecurityBindingElement.GetProperty<T>(BindingContext) 方法

定义

BindingContext 中获取指定的对象。Gets a specified object from the 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

要获取的对象类型。The type of the object to get.

参数

返回

T

BindingContext 中的 T 类型的对象,如果找不到该对象,则为 nullThe object of type T from the BindingContext, or null if the object is not found.

注解

此方法从基类或该类的一个上级中获取指定对象。This method gets the specified object from the base class or from one of that class's ancestors. 返回的对象通常是一个属性集合,例如实现 ISecurityCapabilities 的对象。The object returned is usually a collection of properties, for example, an object that implements ISecurityCapabilities.

适用于