Saml2Assertion.CanWriteSourceData Property

Definition

Gets a value that indicates whether this assertion was deserialized from XML source and can re-emit the XML data unchanged.

C#
public virtual bool CanWriteSourceData { get; }

Property Value

true if this assertion can re-emit the XML source data unchanged; otherwise, false.

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 Id 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

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1