Sitecore 5.0 API

ItemIDs Class

Implements a static class for holding assorted well-known GUID values.

For a list of all members of this type, see ItemIDs Members.

System.Object
   Sitecore.ItemIDs

[Visual Basic]
Public Class ItemIDs
[C#]
public class ItemIDs

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

An ID identifies an object within the system, but not uniquely. The underlying data of an ID is a Guid.

The class does not contain any functionality, but serves only as a placeholder for a predefined Guids.

Example

The following example retrieves the workflow root item, under which workflows are defined.

{{{
public Item GetWorkflowByName(string name) {
  Item root = Sitecore.Context.ContentDatabase.Items[ItemIDs.WorkflowRoot];
  if (root != null)  {
    return root.Children[name];
  }
  return null;
}
}}}

Requirements

Namespace: Sitecore

Assembly: Sitecore.Kernel (in Sitecore.Kernel.dll)

See Also

ItemIDs Members | Sitecore Namespace