Dropbox .NET SDK
Show / Hide Table of Contents

Class Metadata

Metadata for a file or folder.

Inheritance
object
Metadata
DeletedMetadata
FileMetadata
FolderMetadata
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Dropbox.Api.Files
Assembly: Dropbox.Api.dll
Syntax
public class Metadata

Constructors

View Source

Metadata(string, string, string, string, string)

Initializes a new instance of the Metadata class.

Declaration
protected Metadata(string name, string pathLower = null, string pathDisplay = null, string parentSharedFolderId = null, string previewUrl = null)
Parameters
Type Name Description
string name

The last component of the path (including extension). This never contains a slash.

string pathLower

The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted.

string pathDisplay

The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by ListFolderContinueAsync(ListFolderContinueArg) ListFolderContinueAsync(ListFolderContinueArg). This field will be null if the file or folder is not mounted.

string parentSharedFolderId

Field is deprecated. Please use ParentSharedFolderId or ParentSharedFolderId instead.

string previewUrl

The preview URL of the file.

Properties

View Source

AsDeleted

Gets this instance as a DeletedMetadata, or null.

Declaration
public DeletedMetadata AsDeleted { get; }
Property Value
Type Description
DeletedMetadata
View Source

AsFile

Gets this instance as a FileMetadata, or null.

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

AsFolder

Gets this instance as a FolderMetadata, or null.

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

IsDeleted

Gets a value indicating whether this instance is Deleted

Declaration
public bool IsDeleted { get; }
Property Value
Type Description
bool
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

Name

The last component of the path (including extension). This never contains a slash.

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

ParentSharedFolderId

Field is deprecated. Please use ParentSharedFolderId or ParentSharedFolderId instead.

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

PathDisplay

The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned by ListFolderContinueAsync(ListFolderContinueArg) ListFolderContinueAsync(ListFolderContinueArg). This field will be null if the file or folder is not mounted.

Declaration
public string PathDisplay { 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 be null if the file or folder is not mounted.

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

PreviewUrl

The preview URL of the file.

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

See Also

DeleteBatchResultData
DeleteResult
DeletedMetadata
FileMetadata
FolderMetadata
GetCopyReferenceResult
LockFileResult
RelocationBatchResultData
RelocationResult
SaveCopyReferenceResult
SearchMatch
  • View Source
In this article
Back to top Dropbox .NET SDK