Class VisibilityPolicy
The visibility policy object
Inheritance
Inherited Members
Namespace: Dropbox.Api.Sharing
Assembly: Dropbox.Api.dll
Syntax
public class VisibilityPolicy
Constructors
| Improve this Doc View SourceVisibilityPolicy(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 |
Properties
| Improve this Doc View SourceAllowed
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 |
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 |
Policy
This is the value to submit when saving the visibility setting.
Declaration
public RequestedVisibility Policy { get; protected set; }
Property Value
Type | Description |
---|---|
RequestedVisibility |
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 |