Rename CefSettings.ProductVersion to CefSettings.UserAgentProduct

This is a breaking change.

Resolves #3530
This commit is contained in:
Alex Maitland
2021-04-30 11:35:29 +10:00
parent 969b94c356
commit 09652614bd
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -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>
+4 -4
View File
@@ -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>