Click or drag to resize

IMsItemAsyncGetFileAttributesAsync Method

IT Hit WebDAV Classes Reference
Retrieves file attributes.

Namespace:  ITHit.WebDAV.Server.MicrosoftExtensions
Assembly:  ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 11.3.10719
Syntax
Task<FileAttributes> GetFileAttributesAsync()

Task<FileAttributes> GetFileAttributesAsync()

Return Value

Type: TaskFileAttributes
File attributes.
Examples

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

public async Task<FileAttributes> GetFileAttributesAsync()
{
    if (Name.StartsWith("."))
    {
        return fileSystemInfo.Attributes | FileAttributes.Hidden;
    }
    return fileSystemInfo.Attributes;
}
See Also