Class SharedLinkMetadata
The metadata of a shared link.
Inherited Members
Namespace: Dropbox.Api.Sharing
Assembly: Dropbox.Api.dll
Syntax
public class SharedLinkMetadata
Constructors
| Improve this Doc View SourceSharedLinkMetadata(String, String, LinkPermissions, String, Nullable<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 |
---|---|---|
System.String | url | URL of the shared link. |
System.String | name | The linked file name (including extension). This never contains a slash. |
LinkPermissions | linkPermissions | The link's access permissions. |
System.String | id | A unique identifier for the linked file. |
System.Nullable<System.DateTime> | expires | Expiration time, if set. By default the link won't expire. |
System.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. |
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
| Improve this Doc 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 |
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> |
Id
A unique identifier for the linked file.
Declaration
public string Id { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
IsFile
Gets a value indicating whether this instance is File
Declaration
public bool IsFile { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsFolder
Gets a value indicating whether this instance is Folder
Declaration
public bool IsFolder { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
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 |
---|---|
System.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.
Declaration
public string PathLower { get; protected set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.String |