IAclHierarchyItemGetCurrentUserPrivilegeSet Method
IT Hit WebDAV Classes Reference
Retrieves the exact set of privileges (as computed by
the server) granted to the currently authenticated HTTP user. Aggregate privileges and their contained
privileges are listed. A user-agent can use the value of this property to adjust its user interface to
make actions inaccessible (e.g., by graying out a menu item or button) for which the current principal
does not have permission. This property is also useful for determining what operations the current
principal can perform, without having to actually execute an operation.
Namespace: ITHit.WebDAV.Server.AclAssembly: ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 4.5.3121.0
Syntax IEnumerable<Privilege> GetCurrentUserPrivilegeSet()
Function GetCurrentUserPrivilegeSet As IEnumerable(Of Privilege)
IEnumerable<Privilege>^ GetCurrentUserPrivilegeSet()
abstract GetCurrentUserPrivilegeSet : unit -> IEnumerable<Privilege>
Return Value
Type:
IEnumerablePrivilege
List of current user privileges.
Exceptions Examples The code below is part of 'WebDAVServer.NtfsNtlmAcl' sample provided with the SDK.
public IEnumerable<Privilege> GetCurrentUserPrivilegeSet()
{
throw new DavException("Not implemented.", DavStatus.NOT_IMPLEMENTED);
}
See Also