Click or drag to resize

IPrincipalFolderAsyncCreatePrincipalAsync 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: 9.1.5460-Beta
Syntax
Task<IPrincipalAsync> CreatePrincipalAsync(
	string name
)

Parameters

name
Type: SystemString
Principal name

Return Value

Type: TaskIPrincipalAsync
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