Dropbox .NET SDK
Show / Hide Table of Contents

Class SharedLinkMetadata

The metadata of a shared link.

Inheritance
object
SharedLinkMetadata
FileLinkMetadata
FolderLinkMetadata
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 SharedLinkMetadata

Constructors

View Source

SharedLinkMetadata(string, string, LinkPermissions, string, DateTime?, string, TeamMemberInfo, Team)

Initializes a new instance of the SharedLinkMetadata class.

Declaration
protected SharedLinkMetadata(string url, string name, LinkPermissions linkPermissions, string id = null, DateTime? expires = null, string pathLower = null, TeamMemberInfo teamMemberInfo = null, Team contentOwnerTeamInfo = null)
Parameters
Type Name Description
string url

URL of the shared link.

string name

The linked file name (including extension). This never contains a slash.

LinkPermissions linkPermissions

The link's access permissions.

string id

A unique identifier for the linked file.

DateTime? expires

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

string pathLower

The lowercased full path in the user's Dropbox. This always starts with a slash. This field will only be present only if the linked file is in the authenticated user's dropbox and the user is the owner of the link.

TeamMemberInfo teamMemberInfo

The team membership information of the link's owner. This field will only be present if the link's owner is a team member.

Team contentOwnerTeamInfo

The team information of the content's owner. This field will only be present if the content's owner is a team member and the content's owner team is different from the link's owner team.

Properties

View Source

AsFile

Gets this instance as a FileLinkMetadata, or null.

Declaration
public FileLinkMetadata AsFile { get; }
Property Value
Type Description
FileLinkMetadata
View Source

AsFolder

Gets this instance as a FolderLinkMetadata, or null.

Declaration
public FolderLinkMetadata AsFolder { get; }
Property Value
Type Description
FolderLinkMetadata
View Source

ContentOwnerTeamInfo

The team information of the content's owner. This field will only be present if the content's owner is a team member and the content's owner team is different from the link's owner team.

Declaration
public Team ContentOwnerTeamInfo { get; protected set; }
Property Value
Type Description
Team
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

Id

A unique identifier for the linked file.

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

IsFile

Gets a value indicating whether this instance is File

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

IsFolder

Gets a value indicating whether this instance is Folder

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

LinkPermissions

The link's access permissions.

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

Name

The linked file name (including extension). This never contains a slash.

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

PathLower

The lowercased full path in the user's Dropbox. This always starts with a slash. This field will only be present only if the linked file is in the authenticated user's dropbox and the user is the owner of the link.

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

TeamMemberInfo

The team membership information of the link's owner. This field will only be present if the link's owner is a team member.

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

Url

URL of the shared link.

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

See Also

FileLinkMetadata
FolderLinkMetadata
  • View Source
In this article
Back to top Dropbox .NET SDK