Class LinkMetadata
Metadata for a shared link. This can be either a PathLinkMetadata or CollectionLinkMetadata.
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 SourceLinkMetadata(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 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 |
---|---|
System.Nullable<System.DateTime> |
IsCollection
Gets a value indicating whether this instance is Collection
Declaration
public bool IsCollection { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsPath
Gets a value indicating whether this instance is Path
Declaration
public bool IsPath { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Url
URL of the shared link.
Declaration
public string Url { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
Visibility
Who can access the link.
Declaration
public Visibility Visibility { get; protected set; }
Property Value
Type | Description |
---|---|
Visibility |