Saml2Assertion.CanWriteSourceData Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.IdentityModel.Tokens
Assembly:  System.IdentityModel (in System.IdentityModel.dll)

public virtual bool CanWriteSourceData { get; }

Property Value

Type: System.Boolean

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

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.

System_CAPS_importantImportant

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.

.NET Framework
Available since 4.5
Return to top
Show: