SamlSecurityTokenHandler.WriteCondition(XmlWriter, SamlCondition) 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.
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
- condition
- SamlCondition
The data to write. By default, only SamlAudienceRestrictionCondition and SamlDoNotCacheCondition are supported.
Exceptions
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.