Dropbox .NET SDK
Show / Hide Table of Contents

Class VisibilityPolicy

The visibility policy object

Inheritance
object
VisibilityPolicy
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Dropbox.Api.Sharing
Assembly: Dropbox.Api.dll
Syntax
public class VisibilityPolicy

Constructors

View Source

VisibilityPolicy(RequestedVisibility, AlphaResolvedVisibility, bool, VisibilityPolicyDisallowedReason)

Initializes a new instance of the VisibilityPolicy class.

Declaration
public VisibilityPolicy(RequestedVisibility policy, AlphaResolvedVisibility resolvedPolicy, bool allowed, VisibilityPolicyDisallowedReason disallowedReason = null)
Parameters
Type Name Description
RequestedVisibility policy

This is the value to submit when saving the visibility setting.

AlphaResolvedVisibility resolvedPolicy

This is what the effective policy would be, if you selected this option. The resolved policy is obtained after considering external effects such as shared folder settings and team policy. This value is guaranteed to be provided.

bool allowed

Whether the user is permitted to set the visibility to this policy.

VisibilityPolicyDisallowedReason disallowedReason

If allowed is false, this will provide the reason that the user is not permitted to set the visibility to this policy.

Properties

View Source

Allowed

Whether the user is permitted to set the visibility to this policy.

Declaration
public bool Allowed { get; protected set; }
Property Value
Type Description
bool
View Source

DisallowedReason

If Allowed is false, this will provide the reason that the user is not permitted to set the visibility to this policy.

Declaration
public VisibilityPolicyDisallowedReason DisallowedReason { get; protected set; }
Property Value
Type Description
VisibilityPolicyDisallowedReason
View Source

Policy

This is the value to submit when saving the visibility setting.

Declaration
public RequestedVisibility Policy { get; protected set; }
Property Value
Type Description
RequestedVisibility
View Source

ResolvedPolicy

This is what the effective policy would be, if you selected this option. The resolved policy is obtained after considering external effects such as shared folder settings and team policy. This value is guaranteed to be provided.

Declaration
public AlphaResolvedVisibility ResolvedPolicy { get; protected set; }
Property Value
Type Description
AlphaResolvedVisibility
  • View Source
In this article
Back to top Dropbox .NET SDK