Saml2Serializer.WriteAudienceRestriction Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes the <saml:AudienceRestriction> element.
protected virtual void WriteAudienceRestriction (System.Xml.XmlWriter writer, Microsoft.IdentityModel.Tokens.Saml2.Saml2AudienceRestriction audienceRestriction);
abstract member WriteAudienceRestriction : System.Xml.XmlWriter * Microsoft.IdentityModel.Tokens.Saml2.Saml2AudienceRestriction -> unit
override this.WriteAudienceRestriction : System.Xml.XmlWriter * Microsoft.IdentityModel.Tokens.Saml2.Saml2AudienceRestriction -> unit
Protected Overridable Sub WriteAudienceRestriction (writer As XmlWriter, audienceRestriction As Saml2AudienceRestriction)
Parameters
- writer
- XmlWriter
A XmlWriter to serialize the Saml2AudienceRestriction.
- audienceRestriction
- Saml2AudienceRestriction
The Saml2AudienceRestriction to serialize.
Exceptions
if audienceRestriction
is null.
if Audiences is empty.