Cloud Storage Integrator 2016 .NET Edition
Cloud Storage Integrator 2016 .NET Edition
Questions / Feedback?

PermissionList Event

This event fires once for each permission returned when calling ListPermissions.

Syntax

[VB.NET]
Public Event OnPermissionList As OnPermissionListHandler
[C#]
public event OnPermissionListHandler OnPermissionList;

public delegate void OnPermissionListHandler(object sender, GoogledrivePermissionListEventArgs e);

class GoogledrivePermissionListEventArgs : EventArgs {
  string Id {get;}
  int Role {get;}
  int PermissionType {get;}
  string Email {get;}
  string Domain {get;}
  bool AllowFileDiscovery {get;}
}

Remarks

When calling ListPermissions this event will fire once for each permission that is returned.

Id is the Id of the permission.

Role is the role of the permission. Possible values are:

0 Read-only.
1 Read and write permissions.
2 Full ownership.
3 Read-only, plus commenting

PermissionType identifies the type of the permission. Possible values are:

0 A single user.
1 A group.
2 A domain.
3 Anyone, authenticated or not.

Email holds the email address of the user or group that the permission applies to when PermissionType is 0 or 1.

Domain holds the domain that the permission applies to when PermissionType is 2.

AllowFileDiscovery signifies whether the permission allows the file to be discovered through search. It is only applicable when PermissionType is 2 or 3.

 
 
Copyright (c) 2019 /n software inc. - All rights reserved.
Cloud Storage Integrator 2016 .NET Edition - Version 16.0 [Build 7239]