Share via


State Members

Provides a dictionary of information which provides notification when items change in the collection. It is serialized with the WorkItem when the WorkItem is saved and loaded.

The following tables list the members exposed by the State type.

Public Constructors

(see also Protected Constructors )

  Name Description
Public method State Overloaded.  

Top

Protected Constructors

  Name Description
Protected method State Overloaded.  

Top

Public Properties

(see also Protected Properties )

  Name Description
Public property Count  (Inherited from NameObjectCollectionBase.)
Public property HasChanges Gets whether the state has changed since it was initially created or the last call to AcceptChanges.
Public property ID Gets the state ID.
Public property Item Gets and sets the value of an element in the state.
Public property Keys  (Inherited from NameObjectCollectionBase.)
Public property TraceSource Sets the TraceSource to use for tracing messages.

Top

Protected Properties

  Name Description
Protected property IsReadOnly  (Inherited from NameObjectCollectionBase.)

Top

Public Methods

(see also Protected Methods )

  Name Description
Public method AcceptChanges Resets the HasChanges flag.
Public method Dispose  Overloaded. (Inherited from StateElement.)
Public method Equals  Overloaded. (Inherited from Object.)
Public method GetEnumerator  (Inherited from NameObjectCollectionBase.)
Public method GetHashCode  (Inherited from Object.)
Public method GetObjectData Overridden. Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
Public method GetType  (Inherited from Object.)
Public method OnDeserialization  (Inherited from NameObjectCollectionBase.)
Public method RaiseStateChanged  Overloaded. (Inherited from StateElement.)
Public method Static ReferenceEquals  (Inherited from Object.)
Public method Remove  Removes the item with the given key from the state. (Inherited from StateElement.)
Public method ToString  (Inherited from Object.)

Top

Protected Methods

  Name Description
Protected method BaseAdd  (Inherited from NameObjectCollectionBase.)
Protected method BaseClear  (Inherited from NameObjectCollectionBase.)
Protected method BaseGet  Overloaded. (Inherited from NameObjectCollectionBase.)
Protected method BaseGetAllKeys  (Inherited from NameObjectCollectionBase.)
Protected method BaseGetAllValues  Overloaded. (Inherited from NameObjectCollectionBase.)
Protected method BaseGetKey  (Inherited from NameObjectCollectionBase.)
Protected method BaseHasKeys  (Inherited from NameObjectCollectionBase.)
Protected method BaseRemove  (Inherited from NameObjectCollectionBase.)
Protected method BaseRemoveAt  (Inherited from NameObjectCollectionBase.)
Protected method BaseSet  Overloaded. (Inherited from NameObjectCollectionBase.)
Protected method Dispose  Overloaded. (Inherited from StateElement.)
Protected method Finalize  (Inherited from Object.)
Protected method MemberwiseClone  (Inherited from Object.)
Protected method OnStateChanged Overridden. Raises the StateChanged event and sets the HasChanges flag to true.

Top

Public Events

  Name Description
Public event StateChanged  This event is raised when the state has changed. (Inherited from StateElement.)

Top

See Also

Reference

State Class
Microsoft.Practices.CompositeUI Namespace