LinkPermissions Class

A shared link’s access permissions.

Constructors

Name Description
LinkPermissions(bool, ResolvedVisibility?, RequestedVisibility?, SharedLinkAccessFailureReason?) Creates a new instance of the LinkPermissions class.

Properties

Name Type Description
CanRevoke System.Boolean Whether the current user can revoke the shared link or not.
RequestedVisibility DotNetBox.RequestedVisibility The shared link’s requested visibility. This can be overridden by team and shared folder policies.
ResolvedVisibility DotNetBox.ResolvedVisibility The current visibility of the link after considering the shared link policies of the team (if applicable) and if it is located in a shared folder or not.
RevokeFailureReason DotNetBox.SharedLinkAccessFailureReason The failure reason for revoking the link. This field will only be present if CanRevoke is false.

Methods

Name Description
LinkPermissions.FromJson(JObject) Creates a new instance of the LinkPermissions class using a JSON object.
LinkPermissions.ToString() Returns a string containing all of the class’ properties.