Click or drag to resize

IPrincipalFolderCreatePrincipalAsync Method

IT Hit WebDAV Classes Reference
Creates principal with given name.

Namespace:  ITHit.WebDAV.Server.Acl
Assembly:  ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 13.3.13068
Syntax
Task<IPrincipal> CreatePrincipalAsync(
	string name
)

Parameters

name
Type: SystemString
Principal name

Return Value

Type: TaskIPrincipal
Newly created principal.
Exceptions
ExceptionCondition
LockedExceptionThis folder was locked. Client did not provide the lock token.
NeedPrivilegesExceptionThe user doesn't have enough privileges.
InsufficientStorageExceptionQuota limit is reached.
DavExceptionIn other cases.
Remarks
The principal created can be either group or user. One of the way to distinguish is to create separate folders for users and for groups, so in one folder only users can be created, and in another one only groups.
See Also