Show / Hide Table of Contents

Class VisibilityPolicy

The visibility policy object

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

Constructors

| Improve this Doc View Source

VisibilityPolicy(RequestedVisibility, AlphaResolvedVisibility, Boolean, 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.

System.Boolean 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

| Improve this Doc 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
System.Boolean
| Improve this Doc 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
| Improve this Doc 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
| Improve this Doc 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
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • VisibilityPolicy(RequestedVisibility, AlphaResolvedVisibility, Boolean, VisibilityPolicyDisallowedReason)
  • Properties
    • Allowed
    • DisallowedReason
    • Policy
    • ResolvedPolicy
Back to top Generated by DocFX