Show / Hide Table of Contents

Class DropboxClientConfig

The class which contains all configurations for Dropbox client.

Inheritance
System.Object
DropboxClientConfig
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
Assembly: Dropbox.Api.dll
Syntax
public sealed class DropboxClientConfig

Constructors

| Improve this Doc View Source

DropboxClientConfig()

Initializes a new instance of the DropboxClientConfig class.

Declaration
public DropboxClientConfig()
| Improve this Doc View Source

DropboxClientConfig(String)

Initializes a new instance of the DropboxClientConfig class.

Declaration
public DropboxClientConfig(string userAgent)
Parameters
Type Name Description
System.String userAgent

The user agent to use when making requests.

| Improve this Doc View Source

DropboxClientConfig(String, Int32)

Initializes a new instance of the DropboxClientConfig class.

Declaration
public DropboxClientConfig(string userAgent, int maxRetriesOnError)
Parameters
Type Name Description
System.String userAgent

The user agent to use when making requests.

System.Int32 maxRetriesOnError

The max number retries on error.

Properties

| Improve this Doc View Source

HttpClient

Gets or sets the custom http client. If not set, a default http client will be created.

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

LongPollHttpClient

Gets or sets the custom http client for long poll request. If not set, a default http client with a longer timeout (480 seconds) will be created.

Declaration
public HttpClient LongPollHttpClient { get; set; }
Property Value
Type Description
HttpClient
| Improve this Doc View Source

MaxRetriesOnError

Gets or sets the max number retries on error. Default value is 4.

Declaration
public int MaxRetriesOnError { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

UserAgent

Gets or sets the user agent to use when making requests.

Declaration
public string UserAgent { get; set; }
Property Value
Type Description
System.String
Remarks

This value helps Dropbox to identify requests coming from your application. We recommend that you use the format "AppName/Version"; if a value is supplied, the string "/OfficialDropboxDotNetV2SDK/version" is appended to the user agent.

  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • DropboxClientConfig()
    • DropboxClientConfig(String)
    • DropboxClientConfig(String, Int32)
  • Properties
    • HttpClient
    • LongPollHttpClient
    • MaxRetriesOnError
    • UserAgent
Back to top Generated by DocFX