Share via


WorkItem.ID Property

Gets/sets the ID of this WorkItem. The ID is used for persistence of the WorkItem. By default, the ID will be a GUID. If you set a new ID, the old state data will be lost and replaced with new, empty state.

Namespace: Microsoft.Practices.CompositeUI
Assembly: Microsoft.Practices.CompositeUI (in microsoft.practices.compositeui.dll)

Syntax

'Declaration
Public Property ID As String
'Usage
Dim instance As WorkItem
Dim value As String

value = instance.ID

instance.ID = value
public string ID { get; set; }
public:
property String^ ID {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_ID ()

/** @property */
public void set_ID (String value)
public function get ID () : String

public function set ID (value : String)

See Also

Reference

WorkItem Class
WorkItem Members
Microsoft.Practices.CompositeUI Namespace