IPWorks Cloud 2020 .NET Edition

Questions / Feedback?

PermissionList Event

This event fires once for each permission returned when ListPermissions or GetPermissionInfo is called.

Syntax

public event OnPermissionListHandler OnPermissionList;

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

public class SharefilePermissionListEventArgs : EventArgs {
  public string FolderId { get; }
  public string UserId { get; }
  public bool CanDelete { get; }
  public bool CanDownload { get; }
  public bool CanManagePermissions { get; }
  public bool CanUpload { get; }
  public bool CanView { get; }
  public bool IsOwner { get; }
  public bool NotifyOnDownload { get; }
  public bool NotifyOnUpload { get; }
}
Public Event OnPermissionList As OnPermissionListHandler

Public Delegate Sub OnPermissionListHandler(sender As Object, e As SharefilePermissionListEventArgs)

Public Class SharefilePermissionListEventArgs Inherits EventArgs
  Public ReadOnly Property FolderId As String
  Public ReadOnly Property UserId As String
  Public ReadOnly Property CanDelete As Boolean
  Public ReadOnly Property CanDownload As Boolean
  Public ReadOnly Property CanManagePermissions As Boolean
  Public ReadOnly Property CanUpload As Boolean
  Public ReadOnly Property CanView As Boolean
  Public ReadOnly Property IsOwner As Boolean
  Public ReadOnly Property NotifyOnDownload As Boolean
  Public ReadOnly Property NotifyOnUpload As Boolean
End Class

Remarks

This event fires once for each permission returned when ListPermissions or GetPermissionInfo is called. The permissions cannot be modified from this event. The FolderId represents the item Id for the specific folder the permission is for. The UserId represents the Id for the user the permission is for.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 .NET Edition - Version 20.0 [Build 8265]