Show / Hide Table of Contents

Class LinkMetadata

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

Inheritance
System.Object
LinkMetadata
CollectionLinkMetadata
PathLinkMetadata
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 LinkMetadata

Constructors

| Improve this Doc View Source

LinkMetadata(String, Visibility, Nullable<DateTime>)

Initializes a new instance of the LinkMetadata class.

Declaration
protected LinkMetadata(string url, Visibility visibility, DateTime? expires = null)
Parameters
Type Name Description
System.String url

URL of the shared link.

Visibility visibility

Who can access the link.

System.Nullable<System.DateTime> expires

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

Properties

| Improve this Doc View Source

AsCollection

Gets this instance as a CollectionLinkMetadata, or null.

Declaration
public CollectionLinkMetadata AsCollection { get; }
Property Value
Type Description
CollectionLinkMetadata
| Improve this Doc View Source

AsPath

Gets this instance as a PathLinkMetadata, or null.

Declaration
public PathLinkMetadata AsPath { get; }
Property Value
Type Description
PathLinkMetadata
| Improve this Doc 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
System.Nullable<System.DateTime>
| Improve this Doc View Source

IsCollection

Gets a value indicating whether this instance is Collection

Declaration
public bool IsCollection { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IsPath

Gets a value indicating whether this instance is Path

Declaration
public bool IsPath { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Url

URL of the shared link.

Declaration
public string Url { get; protected set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Visibility

Who can access the link.

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

See Also

CollectionLinkMetadata
PathLinkMetadata
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • LinkMetadata(String, Visibility, Nullable<DateTime>)
  • Properties
    • AsCollection
    • AsPath
    • Expires
    • IsCollection
    • IsPath
    • Url
    • Visibility
  • See Also
Back to top Generated by DocFX