Click or drag to resize

IAclHierarchyItemGetPrincipalCollectionSet Method

IT Hit WebDAV Classes Reference
Retrieves a set of root collections that contain the principals that are available on the server that implements this resource. It can be used to retrieve the Name properties of all principals on that server, thereby yielding human-readable names for each principal that could be displayed in a user interface.

Namespace: ITHit.WebDAV.Server.Acl
Assembly: ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 4.5.3121.0
Syntax
IEnumerable<IPrincipalFolder> GetPrincipalCollectionSet()

Return Value

Type: IEnumerableIPrincipalFolder
List of IPrincipalFolder items.
Exceptions
ExceptionCondition
NeedPrivilegesExceptionNot enough permissions.
DavExceptionIn case of other errors.
Examples

The code below is part of 'WebDAVServer.NtfsNtlmAcl' sample provided with the SDK.

public IEnumerable<IPrincipalFolder> GetPrincipalCollectionSet()
{
    return new IPrincipalFolder[]
               {
                   new UsersFolder(context)
               };
}
See Also