Show / Hide Table of Contents

Class Metadata

Metadata for a file or folder.

Inheritance
System.Object
Metadata
DeletedMetadata
FileMetadata
FolderMetadata
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.Files
Assembly: Dropbox.Api.dll
Syntax
public class Metadata

Constructors

| Improve this Doc 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
System.String name

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

System.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.

System.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.

System.String parentSharedFolderId

Please use ParentSharedFolderId or ParentSharedFolderId instead.

System.String previewUrl

The preview URL of the file.

Properties

| Improve this Doc View Source

AsDeleted

Gets this instance as a DeletedMetadata, or null.

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

AsFile

Gets this instance as a FileMetadata, or null.

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

AsFolder

Gets this instance as a FolderMetadata, or null.

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

IsDeleted

Gets a value indicating whether this instance is Deleted

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

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
System.String
| Improve this Doc View Source

ParentSharedFolderId

Please use ParentSharedFolderId or ParentSharedFolderId instead.

Declaration
public string ParentSharedFolderId { get; protected set; }
Property Value
Type Description
System.String
| Improve this Doc 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
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 be null if the file or folder is not mounted.

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

PreviewUrl

The preview URL of the file.

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

See Also

DeleteBatchResultData
DeleteResult
DeletedMetadata
FileMetadata
FolderMetadata
GetCopyReferenceResult
LockFileResult
RelocationBatchResultData
RelocationResult
SaveCopyReferenceResult
SearchMatch
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • Metadata(String, String, String, String, String)
  • Properties
    • AsDeleted
    • AsFile
    • AsFolder
    • IsDeleted
    • IsFile
    • IsFolder
    • Name
    • ParentSharedFolderId
    • PathDisplay
    • PathLower
    • PreviewUrl
  • See Also
Back to top Generated by DocFX