共用方式為


WSSecurityTokenSerializer.TryCreateKeyIdentifierClauseFromTokenXml 方法

定義

嘗試從表示為 XML 的權杖建立金鑰識別碼子句。

public:
 virtual bool TryCreateKeyIdentifierClauseFromTokenXml(System::Xml::XmlElement ^ element, System::ServiceModel::Security::Tokens::SecurityTokenReferenceStyle tokenReferenceStyle, [Runtime::InteropServices::Out] System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^ % securityKeyIdentifierClause);
public virtual bool TryCreateKeyIdentifierClauseFromTokenXml (System.Xml.XmlElement element, System.ServiceModel.Security.Tokens.SecurityTokenReferenceStyle tokenReferenceStyle, out System.IdentityModel.Tokens.SecurityKeyIdentifierClause securityKeyIdentifierClause);
abstract member TryCreateKeyIdentifierClauseFromTokenXml : System.Xml.XmlElement * System.ServiceModel.Security.Tokens.SecurityTokenReferenceStyle * SecurityKeyIdentifierClause -> bool
override this.TryCreateKeyIdentifierClauseFromTokenXml : System.Xml.XmlElement * System.ServiceModel.Security.Tokens.SecurityTokenReferenceStyle * SecurityKeyIdentifierClause -> bool
Public Overridable Function TryCreateKeyIdentifierClauseFromTokenXml (element As XmlElement, tokenReferenceStyle As SecurityTokenReferenceStyle, ByRef securityKeyIdentifierClause As SecurityKeyIdentifierClause) As Boolean

參數

element
XmlElement

安全性權杖。

securityKeyIdentifierClause
SecurityKeyIdentifierClause

包含安全性金鑰識別碼權杖之項目的子單位。

傳回

如果已建立金鑰識別碼子句,則為 true,否則為 false

適用於