IQuotaGetUsedBytesAsync Method
IT Hit WebDAV Classes Reference
Value in bytes representing the amount of space used by this folder/file
and possibly a number of other similar folders/files, where the set of "similar" meets at least
the criterion that allocating space to any folder/file in the set will
count against the
GetAvailableBytesAsync. It MUST include the
total count including usage derived from sub-items if
appropriate. It SHOULD include metadata storage size if metadata
storage is counted against the
GetAvailableBytesAsync
Namespace:
ITHit.WebDAV.Server.Quota
Assembly:
ITHit.WebDAV.Server (in ITHit.WebDAV.Server.dll) Version: 13.3.13068
Syntax Task<long> GetUsedBytesAsync()
Function GetUsedBytesAsync As Task(Of Long)
Task<long long>^ GetUsedBytesAsync()
abstract GetUsedBytesAsync : unit -> Task<int64>
Return Value
Type:
TaskInt64Bytes occupied by folder/file.
Exceptions Examples The code below is part of 'WebDAVServer.FileSystemStorage.AspNet' C# & VB samples provided with the SDK.
public async Task<long> GetUsedBytesAsync()
{
return await dirInfo.GetStorageUsedBytesAsync();
}
Public Async Function GetUsedBytesAsync() As Task(Of Long) Implements IQuota.GetUsedBytesAsync
Return Await dirInfo.GetStorageUsedBytesAsync()
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