Aqueduct.SitecoreLib.Search.Utilities.ItemUtil.GetStateId C# (CSharp) 메소드

GetStateId() 공개 정적인 메소드

Returns a workflow state item ID.
public static GetStateId ( Item item ) : string
item Item Sitecore content item.
리턴 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;
        }