WSSecurityTokenSerializer.TryCreateKeyIdentifierClauseFromTokenXml 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
尝试从以 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
安全令牌。
- tokenReferenceStyle
- SecurityTokenReferenceStyle
- securityKeyIdentifierClause
- SecurityKeyIdentifierClause
包含安全密钥标识符令牌的元素的子单元。
返回
如果创建了密钥标识符子句,则为 true
;否则为 false
。