Share via


ObjectNeedsStateException Class

The exception that is thrown when a SyncSessionContext object is required and none is specified.

Inheritance Hierarchy

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

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
[<SerializableAttribute>]
type ObjectNeedsStateException =  
    class
        inherit SyncException
    end
public class ObjectNeedsStateException extends SyncException

The ObjectNeedsStateException type exposes the following members.

Constructors

  Name Description
Public method ObjectNeedsStateException() Initializes a new instance of the ObjectNeedsStateException class.
Public method ObjectNeedsStateException(String) Initializes a new instance of the ObjectNeedsStateException class that contains a specified error message.
Protected method ObjectNeedsStateException(SerializationInfo, StreamingContext) Initializes a new instance of the ObjectNeedsStateException class by using serialized data.
Public method ObjectNeedsStateException(String, Exception) Initializes a new instance of the ObjectNeedsStateException class that contains a specified error message and a reference to the inner exception that caused this exception.

Top

Properties

  Name Description
Public property Data (Inherited from Exception.)
Public property ErrorNumber Obsolete. Gets or sets an error number for the exception. (Inherited from SyncException.)
Public property HelpLink (Inherited from Exception.)
Protected property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
Public property Message (Inherited from Exception.)
Public property Source (Inherited from Exception.)
Public property StackTrace (Inherited from Exception.)
Public property SyncSource Obsolete. Gets or sets the name of the component that threw the exception. (Inherited from SyncException.)
Public property SyncStage Obsolete. Gets or sets a SyncStage enumeration value that represents the stage of synchronization during which the error occurred. (Inherited from SyncException.)
Public property TargetSite (Inherited from Exception.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetBaseException (Inherited from Exception.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData (Inherited from Exception.)
Public method GetType (Inherited from Exception.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Exception.)

Top

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.

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

Microsoft.Synchronization Namespace