Click or drag to resize

IMsItemSetFileAttributes Method

IT Hit WebDAV Classes Reference
Updates file attributes.

Namespace: ITHit.WebDAV.Server.MicrosoftExtensions
Assembly: ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 4.5.3121.0
Syntax
void SetFileAttributes(
	FileAttributes value
)

Parameters

value
Type: System.IOFileAttributes
File attributes.

Return Value

Type: 
.
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.NtfsStorage' sample provided with the SDK.

public void SetFileAttributes(FileAttributes value)
{
    File.SetAttributes(fileSystemInfo.FullName, value);
}
See Also