Saml2SecurityTokenHandler.ReadStatement Method (XmlReader)

.NET Framework (current version)

Reads the <saml:Statement> element.

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

protected virtual Saml2Statement ReadStatement(
	XmlReader reader


Type: System.Xml.XmlReader

An XmlReader positioned at the element to read.

Return Value

Type: System.IdentityModel.Tokens.Saml2Statement

A Saml2Statement that represents the Statement element that was read.

Exception Condition

reader is null.

The default implementation only handles Statement elements that specify an xsi:type of saml:AttributeStatementType, saml:AuthnStatementType, and saml:AuthzDecisionStatementType. To handle custom statements, override this method.

.NET Framework
Available since 4.5
Return to top