Previous topicNext topic
Help > Methods >
SetSecurityProperties

SetSecurityProperties Method

Set security options (IsScriptEnabled, AreDefaultScriptDialogsEnabled, IsWebMessageEnabled, AreHostObjectsAllowed) in a single function call.

Syntax

Boolean = object. SetSecurityProperties([IsScriptEnabled As Boolean = True], [AreDefaultScriptDialogsEnabled As Boolean = True], [IsWebMessageEnabled As Boolean = True], [AreHostObjectsAllowed As Boolean = True])

The SetSecurityProperties method syntax has these parts:

Element Description
Object The object placeholder represents an OrdoWebView2 control
Parameters Booleans, optionals : See IsScriptEnabled, AreDefaultScriptDialogsEnabled, IsWebMessageEnabled, AreHostObjectsAllowed documentation
Boolean True if the function succeeded