Partager via


Propriété Saml2Assertion.CanWriteSourceData

Indicates whether this assertion was deserialized from XML source and can re-emit the XML data unchanged.

Espace de noms: Microsoft.IdentityModel.Tokens.Saml2
Assembly : Microsoft.IdentityModel (dans microsoft.identitymodel.dll)

Utilisation

    Dim instance As Saml2Assertion
Dim value As Boolean

value = instance.CanWriteSourceData

Syntaxe

'Déclaration
Public Overridable ReadOnly Property CanWriteSourceData As Boolean
public virtual bool CanWriteSourceData { get; }
public:
virtual property bool CanWriteSourceData {
    bool get ();
}
/** @property */
public boolean get_CanWriteSourceData ()
public function get CanWriteSourceData () : boolean

Valeur de la propriété

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

Remarques

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.

Cohérence de thread

Tous les membres statiques publics (partagés dans Visual Basic) de ce type sont thread-safe.Il n'est pas garanti que les membres d'instance soient thread-safe.

Plateformes

Plateformes de développement

Windows Server 2003, Windows Vista

Target Platforms

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

Voir aussi

Référence

Classe Saml2Assertion
Membres Saml2Assertion
Espace de noms Microsoft.IdentityModel.Tokens.Saml2