SamlSecurityTokenHandler.WriteAssertion(XmlWriter, SamlAssertion) 方法

定义

序列化指定的 SAML 断言到指定的 XML 编写器。

protected:
 virtual void WriteAssertion(System::Xml::XmlWriter ^ writer, System::IdentityModel::Tokens::SamlAssertion ^ assertion);
protected virtual void WriteAssertion (System.Xml.XmlWriter writer, System.IdentityModel.Tokens.SamlAssertion assertion);
abstract member WriteAssertion : System.Xml.XmlWriter * System.IdentityModel.Tokens.SamlAssertion -> unit
override this.WriteAssertion : System.Xml.XmlWriter * System.IdentityModel.Tokens.SamlAssertion -> unit
Protected Overridable Sub WriteAssertion (writer As XmlWriter, assertion As SamlAssertion)

参数

writer
XmlWriter

用于序列化的 XmlWriter

assertion
SamlAssertion

表示要序列化的断言的 SamlAssertion

例外

writernull

assertionnull

标记的加密凭据没有指定的对称密钥。

适用于