SamlSecurityTokenHandler.WriteStatement Method (XmlWriter, SamlStatement)

.NET Framework (current version)
 

Writes a SamlStatement.

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

protected virtual void WriteStatement(
	XmlWriter writer,
	SamlStatement statement
)

Parameters

writer
Type: System.Xml.XmlWriter

The XmlWriter with which to write the data.

statement
Type: System.IdentityModel.Tokens.SamlStatement

The data to write.

Exception Condition
ArgumentNullException

statement is null.

-or-

writer is null.

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

.NET Framework
Available since 4.5
Return to top
Show: