Discuss this help topic in SecureBlackbox Forum

TElGoogleDrivePermissions.Add

TElGoogleDrivePermissions     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Adds a new permission to the list.

Declaration

[VB.NET]
    Function Add(ByVal Role As TSBGoogleDriveUserRole, ByVal AccountType As TSBGoogleDrivePermissionScope, ByVal Value As String, ByVal CanComment As Boolean, ByVal WithLink As Boolean, ByVal SendNotificationEMails As Boolean, ByVal EMailMessage As String) As Integer

[Pascal]
    function Add(Role: TSBGoogleDriveUserRole; AccountType: TSBGoogleDrivePermissionScope; const Value: string; CanComment, WithLink: boolean; SendNotificationEMails: boolean; const EMailMessage: string): integer;

[C++]
    int32_t Add(TSBGoogleDriveUserRole Role, TSBGoogleDrivePermissionScope AccountType, const std::string &Value, bool CanComment, bool WithLink, bool SendNotificationEMails, const std::string &EMailMessage);

[PHP]
    integer Add(integer $Role, integer $AccountType, string $Value, bool $CanComment, bool $WithLink, bool $SendNotificationEMails, string $EMailMessage)

[Java]
    int add(TSBGoogleDriveUserRole Role, TSBGoogleDrivePermissionScope AccountType, String Value, boolean CanComment, boolean WithLink, boolean SendNotificationEMails, String EMailMessage);

Parameters

  • Role - the primary role of the user.
  • AccountType - the account type.
  • Value - the email address or domain name for the entity.
  • CanComment - specifies whether the commenter role is allowed for the user.
  • WithLink - whether the link is required for the new permission.
  • SendNotificationEMails - whether notification emails should be sent.
  • EMailMessage - the text of the email message.

TSBGoogleDriveUserRole values:

TSBGoogleDrivePermissionScope values:

Return value

    Returns the index of the newly added permission in the list.

Description

    Use this method to add a new permission to the list. To remove a permission, call the corresponding object's Delete method.

See also:     Count     Items    

Discuss this help topic in SecureBlackbox Forum