Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Saml2SecurityTokenHandler.ReadAudienceRestriction Method

.NET Framework 4.6 and 4.5

Reads the <saml:AudienceRestriction> element or a <saml:Condition> element that specifies an xsi:type of saml:AudienceRestrictionType.

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

protected virtual Saml2AudienceRestriction ReadAudienceRestriction(
	XmlReader reader
)

Parameters

reader
Type: System.Xml.XmlReader

An XmlReader positioned at the element to read.

Return Value

Type: System.IdentityModel.Tokens.Saml2AudienceRestriction
A Saml2AudienceRestriction that represents the element that was read.

ExceptionCondition
ArgumentNullException

reader is null.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft