Class LinkMetadata
Metadata for a shared link. This can be either a PathLinkMetadata or CollectionLinkMetadata.
Inherited Members
Namespace: Dropbox.Api.Sharing
Assembly: Dropbox.Api.dll
Syntax
public class LinkMetadata
Constructors
View SourceLinkMetadata(string, Visibility, DateTime?)
Initializes a new instance of the LinkMetadata class.
Declaration
protected LinkMetadata(string url, Visibility visibility, DateTime? expires = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | url | URL of the shared link. |
| Visibility | visibility | Who can access the link. |
| DateTime? | expires | Expiration time, if set. By default the link won't expire. |
Properties
View SourceAsCollection
Gets this instance as a CollectionLinkMetadata, or
null.
Declaration
public CollectionLinkMetadata AsCollection { get; }
Property Value
| Type | Description |
|---|---|
| CollectionLinkMetadata |
AsPath
Gets this instance as a PathLinkMetadata, or
null.
Declaration
public PathLinkMetadata AsPath { get; }
Property Value
| Type | Description |
|---|---|
| PathLinkMetadata |
Expires
Expiration time, if set. By default the link won't expire.
Declaration
public DateTime? Expires { get; protected set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
IsCollection
Gets a value indicating whether this instance is Collection
Declaration
public bool IsCollection { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsPath
Gets a value indicating whether this instance is Path
Declaration
public bool IsPath { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Url
URL of the shared link.
Declaration
public string Url { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
Visibility
Who can access the link.
Declaration
public Visibility Visibility { get; protected set; }
Property Value
| Type | Description |
|---|---|
| Visibility |