共用方式為


Saml2Serializer.WriteAudienceRestriction Method

Definition

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.

Applies to