Dropbox .NET SDK
Show / Hide Table of Contents

Class SearchArg

The search arg object

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

Constructors

View Source

SearchArg(string, string, ulong, ulong, SearchMode)

Initializes a new instance of the SearchArg class.

Declaration
public SearchArg(string path, string query, ulong start = 0, ulong maxResults = 100, SearchMode mode = null)
Parameters
Type Name Description
string path

The path in the user's Dropbox to search. Should probably be a folder.

string query

The string to search for. Query string may be rewritten to improve relevance of results. The string is split on spaces into multiple tokens. For file name searching, the last token is used for prefix matching (i.e. "bat c" matches "bat cave" but not "batman car").

ulong start

The starting index within the search results (used for paging).

ulong maxResults

The maximum number of search results to return.

SearchMode mode

The search mode (filename, filename_and_content, or deleted_filename). Note that searching file content is only available for Dropbox Business accounts.

Properties

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

Mode

The search mode (filename, filename_and_content, or deleted_filename). Note that searching file content is only available for Dropbox Business accounts.

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

Path

The path in the user's Dropbox to search. Should probably be a folder.

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

Query

The string to search for. Query string may be rewritten to improve relevance of results. The string is split on spaces into multiple tokens. For file name searching, the last token is used for prefix matching (i.e. "bat c" matches "bat cave" but not "batman car").

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

Start

The starting index within the search results (used for paging).

Declaration
public ulong Start { get; protected set; }
Property Value
Type Description
ulong
  • View Source
In this article
Back to top Dropbox .NET SDK