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()
Function GetFileAttributesAsync As Task(Of FileAttributes)
Task<FileAttributes>^ GetFileAttributesAsync()
abstract GetFileAttributesAsync : unit -> Task<FileAttributes>
Return Value
Type:
TaskFileAttributesFile 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;
}
Public Async Function GetFileAttributesAsync() As Task(Of FileAttributes) Implements IMsItem.GetFileAttributesAsync
If Name.StartsWith(".") Then
Return fileSystemInfo.Attributes Or FileAttributes.Hidden
End If
Return fileSystemInfo.Attributes
End Function
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also