GetUserWorkSets
IEnumerable<Workset> GetUserWorkSets(this Document doc)Gets all user worksets from the document (excludes system worksets).
Parameters
- docDocument
The workshared document.
Returns: User worksets (empty if doc is null or not workshared).
Example
var ws = doc.GetUserWorkSets().ToList();