Επεξεργασία

Κοινή χρήση μέσω


SamlSecurityTokenHandler.WriteAssertion(XmlWriter, SamlAssertion) Method

Definition

Serializes the specified SAML assertion to the specified XML writer.

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)

Parameters

writer
XmlWriter

The XmlWriter to use for the serialization.

assertion
SamlAssertion

A SamlAssertion that represents the assertion to serialize.

Exceptions

writer is null.

-or-

assertion is null.

The token encrypting credentials do not have a Symmetric Key specified.

Applies to