Class SearchOptions
The search options object
Inherited Members
Namespace: Dropbox.Api.Files
Assembly: Dropbox.Api.dll
Syntax
public class SearchOptions
Constructors
View SourceSearchOptions(string, ulong, SearchOrderBy, FileStatus, bool, IEnumerable<string>, IEnumerable<FileCategory>, string)
Initializes a new instance of the SearchOptions class.
Declaration
public SearchOptions(string path = null, ulong maxResults = 100, SearchOrderBy orderBy = null, FileStatus fileStatus = null, bool filenameOnly = false, IEnumerable<string> fileExtensions = null, IEnumerable<FileCategory> fileCategories = null, string accountId = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | Scopes the search to a path in the user's Dropbox. Searches the entire Dropbox if not specified. |
| ulong | maxResults | The maximum number of search results to return. |
| SearchOrderBy | orderBy | Specified property of the order of search results. By default, results are sorted by relevance. |
| FileStatus | fileStatus | Restricts search to the given file status. |
| bool | filenameOnly | Restricts search to only match on filenames. |
| IEnumerable<string> | fileExtensions | Restricts search to only the extensions specified. Only supported for active file search. |
| IEnumerable<FileCategory> | fileCategories | Restricts search to only the file categories specified. Only supported for active file search. |
| string | accountId | Restricts results to the given account id. |
Properties
View SourceAccountId
Restricts results to the given account id.
Declaration
public string AccountId { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
FileCategories
Restricts search to only the file categories specified. Only supported for active file search.
Declaration
public IList<FileCategory> FileCategories { get; protected set; }
Property Value
| Type | Description |
|---|---|
| IList<FileCategory> |
FileExtensions
Restricts search to only the extensions specified. Only supported for active file search.
Declaration
public IList<string> FileExtensions { get; protected set; }
Property Value
| Type | Description |
|---|---|
| IList<string> |
FileStatus
Restricts search to the given file status.
Declaration
public FileStatus FileStatus { get; protected set; }
Property Value
| Type | Description |
|---|---|
| FileStatus |
FilenameOnly
Restricts search to only match on filenames.
Declaration
public bool FilenameOnly { get; protected set; }
Property Value
| Type | Description |
|---|---|
| bool |
MaxResults
The maximum number of search results to return.
Declaration
public ulong MaxResults { get; protected set; }
Property Value
| Type | Description |
|---|---|
| ulong |
OrderBy
Specified property of the order of search results. By default, results are sorted by relevance.
Declaration
public SearchOrderBy OrderBy { get; protected set; }
Property Value
| Type | Description |
|---|---|
| SearchOrderBy |
Path
Scopes the search to a path in the user's Dropbox. Searches the entire Dropbox if not specified.
Declaration
public string Path { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |