mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
Rename CefSettings.ProductVersion to CefSettings.UserAgentProduct
This is a breaking change. Resolves #3530
This commit is contained in:
@@ -277,13 +277,13 @@ namespace CefSharp
|
||||
|
||||
/// <summary>
|
||||
/// Value that will be inserted as the product portion of the default User-Agent string. If empty the Chromium product version
|
||||
/// will be used. If UserAgent is specified this value will be ignored. Also configurable using the "product-version" command-
|
||||
/// will be used. If UserAgent is specified this value will be ignored. Also configurable using the "user-agent-product" command-
|
||||
/// line switch.
|
||||
/// </summary>
|
||||
property String^ ProductVersion
|
||||
property String^ UserAgentProduct
|
||||
{
|
||||
String^ get() { return StringUtils::ToClr(_cefSettings->product_version); }
|
||||
void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->product_version, value); }
|
||||
String^ get() { return StringUtils::ToClr(_cefSettings->user_agent_product); }
|
||||
void set(String^ value) { StringUtils::AssignNativeFromClr(_cefSettings->user_agent_product, value); }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -244,13 +244,13 @@ namespace CefSharp
|
||||
|
||||
/// <summary>
|
||||
/// Value that will be inserted as the product portion of the default User-Agent string. If empty the Chromium product version
|
||||
/// will be used. If UserAgent is specified this value will be ignored. Also configurable using the "product-version" command-
|
||||
/// will be used. If UserAgent is specified this value will be ignored. Also configurable using the "user-agent-product" command-
|
||||
/// line switch.
|
||||
/// </summary>
|
||||
public string ProductVersion
|
||||
public string UserAgentProduct
|
||||
{
|
||||
get { return settings.ProductVersion; }
|
||||
set { settings.ProductVersion = value; }
|
||||
get { return settings.UserAgentProduct; }
|
||||
set { settings.UserAgentProduct = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user