Dropbox .NET SDK
Show / Hide Table of Contents

Class LinkMetadata

Metadata for a shared link. This can be either a PathLinkMetadata or CollectionLinkMetadata.

Inheritance
object
LinkMetadata
CollectionLinkMetadata
PathLinkMetadata
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 LinkMetadata

Constructors

View Source

LinkMetadata(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 Source

AsCollection

Gets this instance as a CollectionLinkMetadata, or null.

Declaration
public CollectionLinkMetadata AsCollection { get; }
Property Value
Type Description
CollectionLinkMetadata
View Source

AsPath

Gets this instance as a PathLinkMetadata, or null.

Declaration
public PathLinkMetadata AsPath { get; }
Property Value
Type Description
PathLinkMetadata
View Source

Expires

Expiration time, if set. By default the link won't expire.

Declaration
public DateTime? Expires { get; protected set; }
Property Value
Type Description
DateTime?
View Source

IsCollection

Gets a value indicating whether this instance is Collection

Declaration
public bool IsCollection { get; }
Property Value
Type Description
bool
View Source

IsPath

Gets a value indicating whether this instance is Path

Declaration
public bool IsPath { get; }
Property Value
Type Description
bool
View Source

Url

URL of the shared link.

Declaration
public string Url { get; protected set; }
Property Value
Type Description
string
View Source

Visibility

Who can access the link.

Declaration
public Visibility Visibility { get; protected set; }
Property Value
Type Description
Visibility

See Also

CollectionLinkMetadata
PathLinkMetadata
  • View Source
In this article
Back to top Dropbox .NET SDK