語言

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端點恆等式。 null 若無法從 tokenRequirement中建立恆等式,則回傳 。

實作

例外狀況

tokenRequirement 是 null。

備註

WCF 基礎架構會呼叫此方法,以取得 EndpointIdentity 對應服務端點的 。

適用於