Indicates whether this assertion was deserialized from XML source and can re-emit the XML data unchanged.
Namespace: Microsoft.IdentityModel.Tokens.Saml2
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As Saml2Assertion
Dim value As Boolean

value = instance.CanWriteSourceData

Syntax

Visual Basic
Public Overridable ReadOnly Property CanWriteSourceData As Boolean
C#
public virtual bool CanWriteSourceData { get; }
C++
public:
virtual property bool CanWriteSourceData {
		bool get ();
}
J#
/** @property */
public boolean get_CanWriteSourceData ()
JScript
public function get CanWriteSourceData () : boolean

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 Saml2AssertionSerializer.ReadAssertion and is willing to re-emit the original data as long as the Id has not changed from the time that assertion was read.

Note that it is vitally 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.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also