<PackageReference Include="System.Security.Permissions" Version="9.0.5" />

WebBrowserPermission

The WebBrowserPermission object controls the ability to create the WebBrowser control.
public WebBrowserPermissionLevel Level { get; set; }

Gets or sets the current value of the Web browser permission level.

Initializes a new instance of the WebBrowserPermission class.

Initializes a new instance of the WebBrowserPermission class by specifying a permission state.

public WebBrowserPermission(WebBrowserPermissionLevel webBrowserPermissionLevel)

Initializes a new instance of the WebBrowserPermission class by specifying the Web browser permission level.

public bool IsUnrestricted()

Returns a value indicating whether the current permission is unrestricted.