Partager via


Classe ObjectNeedsStateException

Exception qui est levée lorsqu'un objet SyncSessionContext est requis et qu'aucun n'est spécifié.

Espace de noms :  Microsoft.Synchronization
Assembly :  Microsoft.Synchronization (dans Microsoft.Synchronization.dll)

Syntaxe

'Déclaration
<SerializableAttribute> _
Public Class ObjectNeedsStateException _
    Inherits SyncException
'Utilisation
Dim instance As ObjectNeedsStateException
[SerializableAttribute]
public class ObjectNeedsStateException : SyncException
[SerializableAttribute]
public ref class ObjectNeedsStateException : public SyncException
[<SerializableAttribute>]
type ObjectNeedsStateException =  
    class
        inherit SyncException
    end
public class ObjectNeedsStateException extends SyncException

Notes

Cette exception est levée lorsque la méthode LoadChangeApplierInfo a été appelée pour charger les informations de l'applicateur de modifications dans l'objet NotifyingChangeApplier, puis que ApplyChanges est appelée avec une valeur autre qu'une Null pour le paramètre SyncSessionContext.

Cette exception est également levée lorsqu'un fournisseur appelle la méthode NotifyingChangeApplier..::..GetChangeApplierInfo pour obtenir des informations d'applicateur de modifications, puis n'appelle pas la méthode NotifyingChangeApplier..::..LoadChangeApplierInfo pour mettre à jour les informations d'applicateur de modifications après qu'il a exécuté une action.

Hiérarchie d'héritage

System. . :: . .Object
  System. . :: . .Exception
    Microsoft.Synchronization. . :: . .SyncException
      Microsoft.Synchronization..::..ObjectNeedsStateException

Sécurité des threads

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

Voir aussi

Référence

Membres ObjectNeedsStateException

Espace de noms Microsoft.Synchronization