SamlSerializer.WriteAudienceRestrictionCondition 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 WriteAudienceRestrictionCondition (System.Xml.XmlWriter writer, Microsoft.IdentityModel.Tokens.Saml.SamlAudienceRestrictionCondition audienceRestriction);
abstract member WriteAudienceRestrictionCondition : System.Xml.XmlWriter * Microsoft.IdentityModel.Tokens.Saml.SamlAudienceRestrictionCondition -> unit
override this.WriteAudienceRestrictionCondition : System.Xml.XmlWriter * Microsoft.IdentityModel.Tokens.Saml.SamlAudienceRestrictionCondition -> unit
Protected Overridable Sub WriteAudienceRestrictionCondition (writer As XmlWriter, audienceRestriction As SamlAudienceRestrictionCondition)
Parameters
- writer
- XmlWriter
A XmlWriter to serialize the SamlAudienceRestrictionCondition.
- audienceRestriction
- SamlAudienceRestrictionCondition
The SamlAudienceRestrictionCondition to serialize.
Exceptions
if audienceRestriction
is null.
if Audiences is empty.