SamlSerializer.WriteAssertion(XmlWriter, SamlAssertion) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
if Statements.Count == 0.