Class SharedLinkMetadata
The metadata of a shared link.
Inherited Members
Namespace: Dropbox.Api.Sharing
Assembly: Dropbox.Api.dll
Syntax
public class SharedLinkMetadata
Constructors
View SourceSharedLinkMetadata(string, string, LinkPermissions, string, DateTime?, string, TeamMemberInfo, Team, string, DateTime?)
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, string previewType = null, DateTime? createdTimestamp = 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. |
| string | previewType | The preview type is determined by the file extension of the shared link. It will be null if the file cannot be previewed by the file viewer. |
| DateTime? | createdTimestamp | The time the shared link was created. |
Properties
View SourceAsFile
Gets this instance as a FileLinkMetadata, or
null.
Declaration
public FileLinkMetadata AsFile { get; }
Property Value
| Type | Description |
|---|---|
| FileLinkMetadata |
AsFolder
Gets this instance as a FolderLinkMetadata, or
null.
Declaration
public FolderLinkMetadata AsFolder { get; }
Property Value
| Type | Description |
|---|---|
| FolderLinkMetadata |
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 |
CreatedTimestamp
The time the shared link was created.
Declaration
public DateTime? CreatedTimestamp { get; protected set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
Expires
Expiration time, if set. By default the link won't expire.
Declaration
public DateTime? Expires { get; protected set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
Id
A unique identifier for the linked file.
Declaration
public string Id { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
IsFile
Gets a value indicating whether this instance is File
Declaration
public bool IsFile { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsFolder
Gets a value indicating whether this instance is Folder
Declaration
public bool IsFolder { get; }
Property Value
| Type | Description |
|---|---|
| bool |
LinkPermissions
The link's access permissions.
Declaration
public LinkPermissions LinkPermissions { get; protected set; }
Property Value
| Type | Description |
|---|---|
| LinkPermissions |
Name
The linked file name (including extension). This never contains a slash.
Declaration
public string Name { get; protected set; }
Property Value
| Type | Description |
|---|---|
| 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.
Declaration
public string PathLower { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
PreviewType
The preview type is determined by the file extension of the shared link. It will be null if the file cannot be previewed by the file viewer.
Declaration
public string PreviewType { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
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 |
Url
URL of the shared link.
Declaration
public string Url { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |