Edit

Share via


Saml2SecurityTokenHandler.WriteStatement(XmlWriter, Saml2Statement) Method

Definition

Writes a Saml2Statement.

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

Parameters

writer
XmlWriter

The XmlWriter with which to write the data.

data
Saml2Statement

The data to write.

Exceptions

data is null.

-or-

writer is null.

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