Show / Hide Table of Contents

Class SharedLinkMetadata

The metadata of a shared link.

Inheritance
System.Object
SharedLinkMetadata
FileLinkMetadata
FolderLinkMetadata
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 SharedLinkMetadata

Constructors

| Improve this Doc View Source

SharedLinkMetadata(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 Source

AsFile

Gets this instance as a FileLinkMetadata, or null.

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

AsFolder

Gets this instance as a FolderLinkMetadata, or null.

Declaration
public FolderLinkMetadata AsFolder { get; }
Property Value
Type Description
FolderLinkMetadata
| Improve this Doc 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
| 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

Id

A unique identifier for the linked file.

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

IsFile

Gets a value indicating whether this instance is File

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

IsFolder

Gets a value indicating whether this instance is Folder

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

LinkPermissions

The link's access permissions.

Declaration
public LinkPermissions LinkPermissions { get; protected set; }
Property Value
Type Description
LinkPermissions
| Improve this Doc 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
System.String
| Improve this Doc 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.

Declaration
public string PathLower { get; protected set; }
Property Value
Type Description
System.String
| Improve this Doc 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
| Improve this Doc View Source

Url

URL of the shared link.

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

See Also

FileLinkMetadata
FolderLinkMetadata
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • SharedLinkMetadata(String, String, LinkPermissions, String, Nullable<DateTime>, String, TeamMemberInfo, Team)
  • Properties
    • AsFile
    • AsFolder
    • ContentOwnerTeamInfo
    • Expires
    • Id
    • IsFile
    • IsFolder
    • LinkPermissions
    • Name
    • PathLower
    • TeamMemberInfo
    • Url
  • See Also
Back to top Generated by DocFX