ResourceList Event
Fires once for each resource returned when listing resources or changes.
Syntax
public event OnResourceListHandler OnResourceList; public delegate void OnResourceListHandler(object sender, OnedriveResourceListEventArgs e); public class OnedriveResourceListEventArgs : EventArgs { public string Id { get; } public string Name { get; } public string Path { get; } public string Description { get; } public int ResourceType { get; } public string CreatedTime { get; } public string ModifiedTime { get; } public long Size { get; } public string ETag { get; } public bool Deleted { get; } }
Public Event OnResourceList As OnResourceListHandler Public Delegate Sub OnResourceListHandler(sender As Object, e As OnedriveResourceListEventArgs) Public Class OnedriveResourceListEventArgs Inherits EventArgs Public ReadOnly Property Id As String Public ReadOnly Property Name As String Public ReadOnly Property Path As String Public ReadOnly Property Description As String Public ReadOnly Property ResourceType As Integer Public ReadOnly Property CreatedTime As String Public ReadOnly Property ModifiedTime As String Public ReadOnly Property Size As Long Public ReadOnly Property ETag As String Public ReadOnly Property Deleted As Boolean End Class
Remarks
This event fires once for each resource returned when ListResources, GetResourceInfo, Search, or ListChanges is called.
Id is the Id of the resource.
Name is the name of the resource.
Path is the path to the resource on the server. This parameter will always be empty for ListChanges.
Description holds the description of the resource. This parameter is only applicable for OneDrive Personal.
ResourceType reflects the resource's type. Possible values are:
0 (odrtFile) | A file. |
1 (odrtFolder) | A folder. |
CreatedTime and ModifiedTime reflect the resource's creation and last modified timestamps. Timestamps are formatted according to ISO 8601 and are always in UTC time.
Size is the size of the resource (for folders, their contents' total size), in bytes. This parameter will always be -1 for ListChanges.
ETag is the ETag of the resource.
Deleted indicates whether the resource has been deleted. This parameter is only applicable for ListChanges, it will always be false otherwise.