ResourceList Event
Fired for each resource listed.
Syntax
[VB.NET] Public Event OnResourceList As OnResourceListHandler
[C#] public event OnResourceListHandler OnResourceList; public delegate void OnResourceListHandler(object sender, OnedriveResourceListEventArgs e); class OnedriveResourceListEventArgs : EventArgs { string Id {get;} string Name {get;} string Description {get;} int ResourceType {get;} string ModifiedDate {get;} long Size {get;} }
Remarks
This event fires with information about each resource listed when calling ListResources, GetResourceInfo, and Search.
Id is the Id of the resource.
Name is the name of the resource.
Description is a short description of the resource.
ResourceType indicates whether the resource is a file or folder. Possible value are:
0 | File |
1 | Folder |
Size holds the size of the current resource in bytes. If the current resource is a folder this returns the total size of all files in the folder and sub-folders.