Class Metadata
Metadata for a file or folder.
Inherited Members
Namespace: Dropbox.Api.Files
Assembly: Dropbox.Api.dll
Syntax
public class Metadata
Constructors
| Improve this Doc View SourceMetadata(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 SourceAsDeleted
Gets this instance as a DeletedMetadata, or
null
.
Declaration
public DeletedMetadata AsDeleted { get; }
Property Value
Type | Description |
---|---|
DeletedMetadata |
AsFile
Gets this instance as a FileMetadata, or null
.
Declaration
public FileMetadata AsFile { get; }
Property Value
Type | Description |
---|---|
FileMetadata |
AsFolder
Gets this instance as a FolderMetadata, or null
.
Declaration
public FolderMetadata AsFolder { get; }
Property Value
Type | Description |
---|---|
FolderMetadata |
IsDeleted
Gets a value indicating whether this instance is Deleted
Declaration
public bool IsDeleted { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
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 |
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 |
ParentSharedFolderId
Please use ParentSharedFolderId or ParentSharedFolderId instead.
Declaration
public string ParentSharedFolderId { get; protected set; }
Property Value
Type | Description |
---|---|
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.
Declaration
public string PathDisplay { 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 be null if the file or folder is not mounted.
Declaration
public string PathLower { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |
PreviewUrl
The preview URL of the file.
Declaration
public string PreviewUrl { get; protected set; }
Property Value
Type | Description |
---|---|
System.String |