ResourceList Event
Fires once for each resource returned when listing resources, changes, or revisions.
Syntax
public event OnResourceListHandler OnResourceList; public delegate void OnResourceListHandler(object sender, DropboxResourceListEventArgs e); public class DropboxResourceListEventArgs : EventArgs { public string Id { get; } public string Name { get; } public string Path { get; } public int ResourceType { get; } public string ModifiedTime { get; } public long Size { get; } public int AccessType { get; } public string Revision { get; } public string Hash { get; } public bool Deleted { get; } }
Public Event OnResourceList As OnResourceListHandler Public Delegate Sub OnResourceListHandler(sender As Object, e As DropboxResourceListEventArgs) Public Class DropboxResourceListEventArgs Inherits EventArgs Public ReadOnly Property Id As String Public ReadOnly Property Name As String Public ReadOnly Property Path As String Public ReadOnly Property ResourceType As Integer Public ReadOnly Property ModifiedTime As String Public ReadOnly Property Size As Long Public ReadOnly Property AccessType As Integer Public ReadOnly Property Revision As String Public ReadOnly Property Hash As String Public ReadOnly Property Deleted As Boolean End Class
Remarks
This event fires once for each resource returned when ListResources, GetResourceInfo, Search, ListChanges, or ListRevisions is called.
Id is the Id of the resource.
Name is the name of the resource.
Path is the path of the resource.
ResourceType reflects the resource's type. Possible values are:
0 (drtFile) | A file. |
1 (drtFolder) | A folder. |
ModifiedTime reflects the last modified time of the file resource, as reported by the server. Not applicable for folder resources. Timestamps are formatted according to ISO 8601 and are always in UTC time.
Size is the size of the file resource, in bytes. Not applicable for folder resources.
AccessType reflects the type of access the current user has to the resource. Possible values are:
0 (atUnrestricted) | The user's access to the resource is not restricted. |
1 (atReadOnly) | The user has read-only access to the resource. This indicates that the resource is, or is located within, a read-only shared folder. |
2 (atLimited) | The user has limited access to the immediate contents of the folder resource (by virtue of having access to one or more other resources located somewhere within the folder). See further notes below. Only applicable to folders. |
3 (atNoAccess) | The user is allowed to see that the folder resource exists, but may not access its contents. Only applicable to folders. |
An access type of 2 (atLimited) still allows the user to call ListResources for a folder, but the results will be limited to the subset of resources within that folder that the user can actually access (including any further limited-access subfolders).
Revision is the revision Id of the file resource. Note applicable for folder resources.
Hash holds a hash of the file resource's content. Not applicable for folder resources.
Deleted indicates whether the resource has been deleted.