WebBrowser DefaultUserAgent Property C# API
Gets or sets the value that the "User-Agent" HTTP header defaults to in Request objects created by this WebBrowser.

Namespace: Facilita.Web
Assembly: clrWebBrowser (in clrWebBrowser.dll) Version: (

public string DefaultUserAgent { get; set; }

Field Value

The value of the "User-Agent" default HTTP header.

Getting this propert is equivalent to calling getDefaultHeaderValue("User-Agent").

DefaultUserAgent = userAgent; is equivalent to setDefaultHeaderValue("User-Agent", userAgent).

See Also