Edit

Share via


SamlSecurityTokenHandler.WriteAudienceRestrictionCondition Method

Definition

Writes the <saml:AudienceRestriction> element.

protected:
 virtual void WriteAudienceRestrictionCondition(System::Xml::XmlWriter ^ writer, System::IdentityModel::Tokens::SamlAudienceRestrictionCondition ^ condition);
protected virtual void WriteAudienceRestrictionCondition (System.Xml.XmlWriter writer, System.IdentityModel.Tokens.SamlAudienceRestrictionCondition condition);
abstract member WriteAudienceRestrictionCondition : System.Xml.XmlWriter * System.IdentityModel.Tokens.SamlAudienceRestrictionCondition -> unit
override this.WriteAudienceRestrictionCondition : System.Xml.XmlWriter * System.IdentityModel.Tokens.SamlAudienceRestrictionCondition -> unit
Protected Overridable Sub WriteAudienceRestrictionCondition (writer As XmlWriter, condition As SamlAudienceRestrictionCondition)

Parameters

writer
XmlWriter

The XmlWriter with which to write the data.

condition
SamlAudienceRestrictionCondition

The data to write.

Exceptions

data is null.

-or-

writer is null.

The Conditions property of the SamlAudienceRestrictionCondition specified in condition is null or an empty collection.

Applies to