Patricio Treviño

Patricio Treviño

Husband . Father . Developer

Get the list of all locked items in Sitecore.

Syntax

fast://*[@__lock!='' and @__lock!='<r />']
view raw syntax.text hosted with ❤ by GitHub

Example

var database = Sitecore.Context.Database;
var items = database.SelectItems("fast://*[@__lock!='' and @__lock!='<r />']");
foreach (var item in items) {
// process each item
}
view raw example.cs hosted with ❤ by GitHub