Skip to content

Commit d068ac7

Browse files
authored
Update IsSmartScreenRequired
1 parent 4982548 commit d068ac7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

specs/IsSmartScreenRequired

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,19 @@ interface ICoreWebView2Settings11 : ICoreWebView2Settings10 {
6262
/// and also helps you make informed decisions about downloads.
6363
/// `IsSmartScreenRequired` is used to control whether SmartScreen enabled or not.
6464
/// SmartScreen is enabled or disabled for all CoreWebView2s in a CoreWebView2Environment.
65-
/// If CoreWebView2Setting.IsSmartScreenRequired is true for any CoreWebView2 in its associated CoreWebView2Environment, then SmartScreen is enabled. If CoreWebView2Setting.IsSmartScreenRequired is false for all CoreWebView2s in the associated CoreWebView2Environment, then SmartScreen is disabled.
65+
/// If CoreWebView2Setting.IsSmartScreenRequired is true for any CoreWebView2 in its associated
66+
/// CoreWebView2Environment, then SmartScreen is enabled. If CoreWebView2Setting.IsSmartScreenRequired
67+
/// is false for all CoreWebView2s in the associated CoreWebView2Environment, then SmartScreen is disabled.
6668
/// When it is changed, the change will be applied to all WebViews using the
6769
/// same user data folder.
68-
/// By default, it is the current actual state of SmartScreen.
70+
/// The default value for `IsSmartScreenRequired` is true if SmartScreen is enabled when the CoreWebView2
71+
/// is created and false if SmartScreen is disabled when the CoreWebView2 is created. The value doesn't change
72+
/// if SmartScreen is enabled or disabled later.
6973
/// \snippet SettingsComponent.cpp ToggleSmartScreenEnabled.
7074
[propget] HRESULT IsSmartScreenRequired([out, retval] BOOL* value);
7175

7276
/// The setting of SmartScreen does not mean the actual situation, it only represents
7377
/// the intention of each WebView2.
74-
/// `put_IsSmartScreenRequired(true)` will always take effect when multiple WebView2s
75-
/// using the same user data folder call `put_IsSmartScreenRequired` at the same time.
76-
/// `put_IsSmartScreenRequired(false)` only takes effect if all WebView2 settings are false.
7778
/// Set the `IsSmartScreenRequired` property.
7879
[propput] HRESULT IsSmartScreenRequired([in] BOOL value);
7980
}
@@ -82,10 +83,9 @@ interface ICoreWebView2Settings11 : ICoreWebView2Settings10 {
8283
## .NET and WinRT
8384
namespace Microsoft.Web.WebView2.Core
8485
{
85-
public partial class CoreWebView2Settings
86+
[interface_name("Microsoft.Web.WebView2.Core.ICoreWebView2StagingSettings")]
8687
{
87-
public bool IsSmartScreenRequired { get; set; };
88-
public bool IsSmartScreenRequired { get; set; };
88+
Boolean IsSmartScreenRequired { get; set; };
8989
}
9090
}
9191

0 commit comments

Comments
 (0)