Saml2SecurityTokenHandler.WriteStatement Method (XmlWriter, Saml2Statement)

.NET Framework (current version)
 

Writes a Saml2Statement.

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

protected virtual void WriteStatement(
	XmlWriter writer,
	Saml2Statement data
)

Parameters

writer
Type: System.Xml.XmlWriter

The XmlWriter with which to write the data.

data
Type: System.IdentityModel.Tokens.Saml2Statement

The data to write.

Exception Condition
ArgumentNullException

data is null.

-or-

writer is null.

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.

.NET Framework
Available since 4.5
Return to top
Show: