Saml2SecurityTokenHandler.WriteStatement(XmlWriter, Saml2Statement) Method

Definition

Writes a Saml2Statement.

C#
protected virtual void WriteStatement(System.Xml.XmlWriter writer, System.IdentityModel.Tokens.Saml2Statement data);

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

Produkt Versiounen
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1