Compartilhar via


SamlSerializer.WriteAssertion(XmlWriter, SamlAssertion) Method

Definition

Writes the <Assertion> element.

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

Parameters

writer
XmlWriter

A XmlWriter to serialize the SamlAssertion.

assertion
SamlAssertion

The SamlAssertion to serialize.

Exceptions

if assertion is null.

Applies to