Click or drag to resize

INetworkAcceptLanguage Property

Gets or sets the Accept-Language request header value.

Namespace:  DotNetBrowser.Net
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.23.3
Syntax
C#
string AcceptLanguage { get; set; }

Property Value

Type: String
The Accept-Language value.
Exceptions
ExceptionCondition
ArgumentExceptionThe value is set to null or an empty string.
ObjectDisposedExceptionThe INetwork object has already been disposed.
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.
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.
See Also