Click or drag to resize

IMsItemSetFileAttributesAsync Method

IT Hit WebDAV Classes Reference
Updates file attributes.

Namespace:  ITHit.WebDAV.Server.MicrosoftExtensions
Assembly:  ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 13.3.13068
Syntax
Task SetFileAttributesAsync(
	FileAttributes value
)

Parameters

value
Type: System.IOFileAttributes
File attributes.

Return Value

Type: Task
.
Exceptions
ExceptionCondition
LockedExceptionThis item was locked. Client did not provide the lock token.
NeedPrivilegesExceptionThe user doesn't have enough privileges.
InsufficientStorageExceptionQuota limit is reached.
DavExceptionIn other cases.
Examples

The code below is part of 'WebDAVServer.FileSystemStorage.AspNet' C# & VB samples provided with the SDK.

public async Task SetFileAttributesAsync(FileAttributes value)
{
    File.SetAttributes(fileSystemInfo.FullName, value);
}
See Also