共用方式為


IssuedSecurityTokenParameters.CreateKeyIdentifierClause 方法

定義

建立權杖的金鑰識別碼子句。

protected public:
 override System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ CreateKeyIdentifierClause(System::IdentityModel::Tokens::SecurityToken ^ token, System::ServiceModel::Security::Tokens::SecurityTokenReferenceStyle referenceStyle);
protected internal override System.IdentityModel.Tokens.SecurityKeyIdentifierClause CreateKeyIdentifierClause (System.IdentityModel.Tokens.SecurityToken token, System.ServiceModel.Security.Tokens.SecurityTokenReferenceStyle referenceStyle);
override this.CreateKeyIdentifierClause : System.IdentityModel.Tokens.SecurityToken * System.ServiceModel.Security.Tokens.SecurityTokenReferenceStyle -> System.IdentityModel.Tokens.SecurityKeyIdentifierClause
Protected Friend Overrides Function CreateKeyIdentifierClause (token As SecurityToken, referenceStyle As SecurityTokenReferenceStyle) As SecurityKeyIdentifierClause

參數

token
SecurityToken

權杖。

referenceStyle
SecurityTokenReferenceStyle

安全性權杖的參考樣式。

傳回

安全性金鑰識別碼子句。

例外狀況

tokennull

referenceStyle 不是 ExternalInternal

備註

會使用 CreateKeyIdentifierClause 方法,並且將 referenceStyle 當做泛型參數,以建立金鑰識別碼子句。

適用於