SamlAssertion.WriteSourceData(XmlWriter) Method

Definition

Writes the source data, if available.

public:
 virtual void WriteSourceData(System::Xml::XmlWriter ^ writer);
public virtual void WriteSourceData (System.Xml.XmlWriter writer);
abstract member WriteSourceData : System.Xml.XmlWriter -> unit
override this.WriteSourceData : System.Xml.XmlWriter -> unit
Public Overridable Sub WriteSourceData (writer As XmlWriter)

Parameters

writer
XmlWriter

The XML writer with which to write the source data.

Exceptions

No source data is available

Remarks

The default implementation preserves the source data when read using the ReadAssertion method and can re-emit the original data as long as the AssertionId property has not changed from the time that assertion was read.

Important

It is very important that SAML assertions with different data have different IDs. If implementing a scheme whereby an assertion "template" is loaded and certain bits of data are filled in, the Id must be changed.

Applies to

See also