語言

WSSecurityTokenSerializer.CreateKeyIdentifierClauseFromTokenXml 方法

定義

從以 XML 表示的令牌建立金鑰識別子句。

public:
 virtual System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ CreateKeyIdentifierClauseFromTokenXml(System::Xml::XmlElement ^ element, System::ServiceModel::Security::Tokens::SecurityTokenReferenceStyle tokenReferenceStyle);
public virtual System.IdentityModel.Tokens.SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXml(System.Xml.XmlElement element, System.ServiceModel.Security.Tokens.SecurityTokenReferenceStyle tokenReferenceStyle);
abstract member CreateKeyIdentifierClauseFromTokenXml : System.Xml.XmlElement * System.ServiceModel.Security.Tokens.SecurityTokenReferenceStyle -> System.IdentityModel.Tokens.SecurityKeyIdentifierClause
override this.CreateKeyIdentifierClauseFromTokenXml : System.Xml.XmlElement * System.ServiceModel.Security.Tokens.SecurityTokenReferenceStyle -> System.IdentityModel.Tokens.SecurityKeyIdentifierClause
Public Overridable Function CreateKeyIdentifierClauseFromTokenXml (element As XmlElement, tokenReferenceStyle As SecurityTokenReferenceStyle) As SecurityKeyIdentifierClause

參數

element
XmlElement

安全令牌。

傳回

建立的安全金鑰識別碼。

例外狀況

當將金鑰識別子句反序列化或無法讀取金鑰識別子句時,會發生錯誤。

適用於