Bewerken

Delen via


SamlDoNotCacheCondition.WriteXml Method

Definition

Writes the <saml:DoNotCacheCondition> element into the specified XML serializer.

public:
 override void WriteXml(System::Xml::XmlDictionaryWriter ^ writer, System::IdentityModel::Tokens::SamlSerializer ^ samlSerializer, System::IdentityModel::Selectors::SecurityTokenSerializer ^ keyInfoSerializer);
public override void WriteXml (System.Xml.XmlDictionaryWriter writer, System.IdentityModel.Tokens.SamlSerializer samlSerializer, System.IdentityModel.Selectors.SecurityTokenSerializer keyInfoSerializer);
override this.WriteXml : System.Xml.XmlDictionaryWriter * System.IdentityModel.Tokens.SamlSerializer * System.IdentityModel.Selectors.SecurityTokenSerializer -> unit
Public Overrides Sub WriteXml (writer As XmlDictionaryWriter, samlSerializer As SamlSerializer, keyInfoSerializer As SecurityTokenSerializer)

Parameters

writer
XmlDictionaryWriter

A XmlDictionaryWriter to write the <saml:DoNotCacheCondition> element.

samlSerializer
SamlSerializer

A SamlSerializer that is capable of writing XML elements in a SAML assertion.

keyInfoSerializer
SecurityTokenSerializer

A SecurityTokenSerializer that is capable of writing KeyInfo clauses.

Exceptions

writer is null

-or-

samlSerializer is null

Remarks

Use the WriteXml(XmlDictionaryWriter, SamlSerializer, SecurityTokenSerializer) method to write the current SamlDoNotCacheCondition instance into a <saml:DoNotCacheCondition> element.

Applies to