ServiceCredentialsSecurityTokenManager.GetIdentityOfSelf 方法

定义

EndpointIdentity获取基于安全令牌要求。

public:
 virtual System::ServiceModel::EndpointIdentity ^ GetIdentityOfSelf(System::IdentityModel::Selectors::SecurityTokenRequirement ^ tokenRequirement);
public virtual System.ServiceModel.EndpointIdentity GetIdentityOfSelf(System.IdentityModel.Selectors.SecurityTokenRequirement tokenRequirement);
abstract member GetIdentityOfSelf : System.IdentityModel.Selectors.SecurityTokenRequirement -> System.ServiceModel.EndpointIdentity
override this.GetIdentityOfSelf : System.IdentityModel.Selectors.SecurityTokenRequirement -> System.ServiceModel.EndpointIdentity
Public Overridable Function GetIdentityOfSelf (tokenRequirement As SecurityTokenRequirement) As EndpointIdentity

参数

tokenRequirement
SecurityTokenRequirement

安全令牌要求。

返回

与 . tokenRequirement. 如果无法从中创建标识,则返回 >。

实现

例外

tokenRequirementnull

注解

WCF 基础结构调用此方法以获取 EndpointIdentity 与服务终结点对应的方法。

适用于