Click or drag to resize

IMsItemGetFileAttributesAsync Method

IT Hit WebDAV Classes Reference
Retrieves file attributes.

Namespace:  ITHit.WebDAV.Server.MicrosoftExtensions
Assembly:  ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 13.3.13068
Syntax
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