public static GetStateId ( Item item ) : string | ||
item | Item | Sitecore content item. |
Résultat | string |
public static string GetStateId(Item item)
{
Assert.ArgumentNotNull(item, "item");
var workflowInfo = item.Database.DataManager.GetWorkflowInfo(item);
return workflowInfo != null ? workflowInfo.StateID : string.Empty;
}