Redigera

Dela via


SamlSecurityTokenHandler.WriteCondition(XmlWriter, SamlCondition) Method

Definition

Serializes the specified SamlCondition object.

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

Parameters

writer
XmlWriter

The XmlWriter with which to write the data.

condition
SamlCondition

The data to write. By default, only SamlAudienceRestrictionCondition and SamlDoNotCacheCondition are supported.

Exceptions

condition is null.

-or-

writer is null.

condition is not supported. . By default, only SamlAudienceRestrictionCondition and SamlDoNotCacheCondition are supported.

Remarks

By default, the method invokes either the WriteAudienceRestrictionCondition or WriteDoNotCacheCondition method to serialize the condition based on the type of SamlCondition specified.

Applies to