WebView.SetIsJavaScriptAlertEnabled Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetIsJavaScriptAlertEnabled(BindableObject, Boolean) |
Sets a Boolean value that tells whether the web view allows JavaScript alerts. |
SetIsJavaScriptAlertEnabled(IPlatformElementConfiguration<Windows,WebView>, Boolean) |
Sets a Boolean value that tells whether the web view allows JavaScript alerts. |
SetIsJavaScriptAlertEnabled(BindableObject, Boolean)
- Source:
- WebView.cs
- Source:
- WebView.cs
Sets a Boolean value that tells whether the web view allows JavaScript alerts.
public:
static void SetIsJavaScriptAlertEnabled(Microsoft::Maui::Controls::BindableObject ^ element, bool value);
public static void SetIsJavaScriptAlertEnabled (Microsoft.Maui.Controls.BindableObject element, bool value);
static member SetIsJavaScriptAlertEnabled : Microsoft.Maui.Controls.BindableObject * bool -> unit
Public Sub SetIsJavaScriptAlertEnabled (element As BindableObject, value As Boolean)
Parameters
- element
- BindableObject
The web view element whose JavaScript alert permissions to set.
- value
- Boolean
True to allow JavaScript alerts. Otherwise, false.
Applies to
SetIsJavaScriptAlertEnabled(IPlatformElementConfiguration<Windows,WebView>, Boolean)
- Source:
- WebView.cs
- Source:
- WebView.cs
Sets a Boolean value that tells whether the web view allows JavaScript alerts.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Windows ^, Microsoft::Maui::Controls::WebView ^> ^ SetIsJavaScriptAlertEnabled(Microsoft::Maui::Controls::IPlatformElementConfiguration<Microsoft::Maui::Controls::PlatformConfiguration::Windows ^, Microsoft::Maui::Controls::WebView ^> ^ config, bool value);
public static Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows,Microsoft.Maui.Controls.WebView> SetIsJavaScriptAlertEnabled (this Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows,Microsoft.Maui.Controls.WebView> config, bool value);
static member SetIsJavaScriptAlertEnabled : Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows, Microsoft.Maui.Controls.WebView> * bool -> Microsoft.Maui.Controls.IPlatformElementConfiguration<Microsoft.Maui.Controls.PlatformConfiguration.Windows, Microsoft.Maui.Controls.WebView>
<Extension()>
Public Function SetIsJavaScriptAlertEnabled (config As IPlatformElementConfiguration(Of Windows, WebView), value As Boolean) As IPlatformElementConfiguration(Of Windows, WebView)
Parameters
The platform configuration for the web view element whose JavaScript alert permissions to set.
- value
- Boolean
True to allow JavaScript alerts. Otherwise, false.
Returns
A fluent object on which the developer may make further method calls.
Applies to
.NET MAUI
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기