This documentation is archived and is not being maintained.

InstanceView Class

Represents a view of an instance. For example, the Execute(InstanceHandle, InstancePersistenceCommand, TimeSpan) method implementations return an InstanceView object that provides a view into the instance data in the persistence store.

System::Object
  System.Runtime.DurableInstancing::InstanceView

Namespace:  System.Runtime.DurableInstancing
Assembly:  System.Runtime.DurableInstancing (in System.Runtime.DurableInstancing.dll)

public ref class InstanceView sealed

The InstanceView type exposes the following members.

  NameDescription
Public propertyInstanceDataGets instance data as a dictionary of names and values.
Public propertyInstanceDataConsistencyGets the consistency status of the InstanceData property.
Public propertyInstanceIdGets the identifier (ID) of the instance as a GUID.
Public propertyInstanceKeysGets the instance keys as a dictionary of instance key identifiers and associated InstanceKeyView objects.
Public propertyInstanceKeysConsistencyGets the consistency status of the InstanceKeys property.
Public propertyInstanceMetadataGets the metadata of an instance as a dictionary of names and InstanceValue objects.
Public propertyInstanceMetadataConsistencyGets the consistency status of the InstanceMetadata property.
Public propertyInstanceOwnerGets the owner of the instance.
Public propertyInstanceOwnerMetadataGets the metadata for an instance owner as a dictionary of names and values.
Public propertyInstanceOwnerMetadataConsistencyGets the consistency status of the InstanceOwnerMetadata property.
Public propertyInstanceStateGets the state of the instance (Unknown, Uninitialized, Initialized, or Completed).
Public propertyInstanceStoreQueryResultsGets a collection of InstanceStoreQueryResult objects. The collection is automatically reset to empty each time a command is executed against the associated instance handle.
Public propertyIsBoundToInstanceReturns a value that indicates whether the associated instance handle is bound to an instance.
Public propertyIsBoundToInstanceOwnerReturns a value that indicates whether the associated instance handle is bound to an instance owner.
Public propertyIsBoundToLockReturns a value that indicates whether the associated instance handle is bound to an instance lock.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Each InstanceView object is associated with an InstanceHandle. For an InstanceView returned from InstanceStore.Execute, the associated handle is the one passed to Execute. For an InstanceView returned from InstancePersistenceContext.InstanceView, the associated handle is the one passed to TryCommand.

An InstanceHandle may have zero or more InstanceView objects associated with it at any given time. InstanceView objects returned from InstanceStore.Execute are immutable and represent a snapshot of the known instance state after the successful execution of that command. InstanceView objects returned from InstancePersistenceContext are mutable and represent the current known instance state as it is being updated during the execution of the command. (If the command ultimately fails, this intermediate state is discarded).

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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