Dropbox .NET SDK
Show / Hide Table of Contents

Class SearchOptions

The search options object

Inheritance
object
SearchOptions
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 SearchOptions

Constructors

View Source

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

AccountId

Restricts results to the given account id.

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

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>
View Source

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>
View Source

FileStatus

Restricts search to the given file status.

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

FilenameOnly

Restricts search to only match on filenames.

Declaration
public bool FilenameOnly { get; protected set; }
Property Value
Type Description
bool
View Source

MaxResults

The maximum number of search results to return.

Declaration
public ulong MaxResults { get; protected set; }
Property Value
Type Description
ulong
View Source

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
View Source

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
  • View Source
In this article
Back to top Dropbox .NET SDK