Class SharedLinkSettings
The shared link settings object
Inherited Members
Namespace: Dropbox.Api.Sharing
Assembly: Dropbox.Api.dll
Syntax
public class SharedLinkSettings
Constructors
View SourceSharedLinkSettings(bool?, string, DateTime?, LinkAudience, RequestedLinkAccessLevel, RequestedVisibility, bool?)
Initializes a new instance of the SharedLinkSettings class.
Declaration
public SharedLinkSettings(bool? requirePassword = null, string linkPassword = null, DateTime? expires = null, LinkAudience audience = null, RequestedLinkAccessLevel access = null, RequestedVisibility requestedVisibility = null, bool? allowDownload = null)
Parameters
| Type | Name | Description |
|---|---|---|
| bool? | requirePassword | Boolean flag to enable or disable password protection. |
| string | linkPassword | If |
| DateTime? | expires | Expiration time of the shared link. By default the link won't expire. |
| LinkAudience | audience | The new audience who can benefit from the access level
specified by the link's access level specified in the |
| RequestedLinkAccessLevel | access | Requested access level you want the audience to gain from this link. Note, modifying access level for an existing link is not supported. |
| RequestedVisibility | requestedVisibility | Field is deprecated. Use |
| bool? | allowDownload | Boolean flag to allow or not download capabilities for shared links. |
Properties
View SourceAccess
Requested access level you want the audience to gain from this link. Note, modifying access level for an existing link is not supported.
Declaration
public RequestedLinkAccessLevel Access { get; protected set; }
Property Value
| Type | Description |
|---|---|
| RequestedLinkAccessLevel |
AllowDownload
Boolean flag to allow or not download capabilities for shared links.
Declaration
public bool? AllowDownload { get; protected set; }
Property Value
| Type | Description |
|---|---|
| bool? |
Audience
The new audience who can benefit from the access level specified by the link's access level specified in the `link_access_level` field of `LinkPermissions`. This is used in conjunction with team policies and shared folder policies to determine the final effective audience type in the `effective_audience` field of `LinkPermissions.
Declaration
public LinkAudience Audience { get; protected set; }
Property Value
| Type | Description |
|---|---|
| LinkAudience |
Expires
Expiration time of the shared link. By default the link won't expire.
Declaration
public DateTime? Expires { get; protected set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
LinkPassword
If RequirePassword is true, this is needed to specify the password to access the link.
Declaration
public string LinkPassword { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
RequestedVisibility
Field is deprecated. Use Audience instead. The requested access for this shared link.
Declaration
public RequestedVisibility RequestedVisibility { get; protected set; }
Property Value
| Type | Description |
|---|---|
| RequestedVisibility |
RequirePassword
Boolean flag to enable or disable password protection.
Declaration
public bool? RequirePassword { get; protected set; }
Property Value
| Type | Description |
|---|---|
| bool? |