ObjectNeedsStateException Class
The exception that is thrown when a SyncSessionContext object is required and none is specified.
Namespace: Microsoft.Synchronization
Assembly: Microsoft.Synchronization (in microsoft.synchronization.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Class ObjectNeedsStateException
Inherits SyncException
'Usage
Dim instance As ObjectNeedsStateException
[SerializableAttribute]
public class ObjectNeedsStateException : SyncException
[SerializableAttribute]
public ref class ObjectNeedsStateException : public SyncException
/** @attribute SerializableAttribute() */
public class ObjectNeedsStateException extends SyncException
SerializableAttribute
public class ObjectNeedsStateException extends SyncException
Remarks
This exception is thrown when LoadChangeApplierInfo was called to load change applier information into the NotifyingChangeApplier object, and then ApplyChanges is called with a value other than a null reference (Nothing in Visual Basic) for the SyncSessionContext parameter.
This exception is also thrown when a provider calls NotifyingChangeApplier.GetChangeApplierInfo to get change applier information, and then does not call NotifyingChangeApplier.LoadChangeApplierInfo to update the change applier information after it has taken some action.
Inheritance Hierarchy
System.Object
System.Exception
Microsoft.Synchronization.SyncException
Microsoft.Synchronization.ObjectNeedsStateException
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.
See Also
Reference
ObjectNeedsStateException Members
Microsoft.Synchronization Namespace