Saml2Serializer.WriteStatement(XmlWriter, Saml2Statement) Method

Definition

Writes a Saml2Statement.

protected virtual void WriteStatement (System.Xml.XmlWriter writer, Microsoft.IdentityModel.Tokens.Saml2.Saml2Statement statement);
abstract member WriteStatement : System.Xml.XmlWriter * Microsoft.IdentityModel.Tokens.Saml2.Saml2Statement -> unit
override this.WriteStatement : System.Xml.XmlWriter * Microsoft.IdentityModel.Tokens.Saml2.Saml2Statement -> unit
Protected Overridable Sub WriteStatement (writer As XmlWriter, statement As Saml2Statement)

Parameters

writer
XmlWriter

A XmlWriter to serialize the Saml2Statement.

statement
Saml2Statement

The Saml2Statement to serialize.

Remarks

This method may write a <saml:AttributeStatement>, <saml:AuthnStatement> or <saml:AuthzDecisionStatement> element. To handle custom Saml2Statement classes for writing a <saml:Statement> element, override this method.

Applies to