ResourceList Event
Fires once for each resource returned when listing resources.
Syntax
public event OnResourceListHandler OnResourceList; public delegate void OnResourceListHandler(object sender, AzurefileResourceListEventArgs e); public class AzurefileResourceListEventArgs : EventArgs { public string Name { get; } public string Path { get; } public string Share { get; } public int ResourceType { get; } public string ModifiedTime { get; } public long Size { get; } public string ETag { get; } }
Public Event OnResourceList As OnResourceListHandler Public Delegate Sub OnResourceListHandler(sender As Object, e As AzurefileResourceListEventArgs) Public Class AzurefileResourceListEventArgs Inherits EventArgs Public ReadOnly Property Name As String Public ReadOnly Property Path As String Public ReadOnly Property Share As String Public ReadOnly Property ResourceType As Integer Public ReadOnly Property ModifiedTime As String Public ReadOnly Property Size As Long Public ReadOnly Property ETag As String End Class
Remarks
This event fires once for each resource returned when ListResources, GetFileInfo, or GetFolderInfo is called.
Name is the name of the resource.
Path is the full path of the resource (not including the share).
Share is the name of the share the resource resides in.
ResourceType reflects the resource's type. Possible values are:
0 (afrtFile) | A file. |
1 (afrtFolder) | A folder. |
ModifiedTime is the last modified time of the resource, formatted according to RFC 1123. (Note: this parameter is not populated by calls to ListResources.)
Size is the size of the file. Always 0 for folders.
ETag is the ETag of the resource. (Note: this parameter is not populated by calls to ListResources.)