Table of Contents

Property AcceptLanguage

Namespace
DotNetBrowser.Net
Assembly
DotNetBrowser.dll

AcceptLanguage

Gets or sets the Accept-Language request header value.

string AcceptLanguage { get; set; }

Property Value

string

The Accept-Language value.

Examples

"fr, en-gb;q=0.8, en;q=0.7" would mean: "I prefer French, but will accept British English and other types of English." Note, that all languages which are assigned a quality factor greater than 0 are acceptable.

Remarks

This field restricts the set of natural languages that are preferred as a response to the request. The default Accept-Language is "en-us". See https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html W3 Documentation.

Exceptions

ArgumentException

The value is set to null or an empty string.

ObjectDisposedException

The INetwork object has already been disposed.