Expand Minimize

Saml2SecurityTokenHandler.WriteAudienceRestriction Method

.NET Framework 4.5

Writes the <saml:AudienceRestriction> element.

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

protected virtual void WriteAudienceRestriction(
	XmlWriter writer,
	Saml2AudienceRestriction data
)

Parameters

writer
Type: System.Xml.XmlWriter

The XmlWriter with which to write the data.

data
Type: System.IdentityModel.Tokens.Saml2AudienceRestriction

The data to write.

ExceptionCondition
ArgumentNullException

data is null.

-or-

writer is null.

.NET Framework

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft