Saml2SecurityTokenHandler.ReadProxyRestriction Method (XmlReader)

.NET Framework (current version)

Reads the <saml:ProxyRestriction> element, or a <saml:Condition> element that specifies an xsi:type of saml:ProxyRestrictionType.

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

protected virtual Saml2ProxyRestriction ReadProxyRestriction(
	XmlReader reader


Type: System.Xml.XmlReader

An XmlReader positioned at the element to read.

Return Value

Type: System.IdentityModel.Tokens.Saml2ProxyRestriction

A Saml2ProxyRestriction that represents the element that was read.

Exception Condition

reader is null.

In the default implementation, the maximum value of the Count attribute is limited to Int32.MaxValue.

.NET Framework
Available since 4.5
Return to top