Previous topicNext topic
Help > Methods >
GetShielException

GetShieldException Method

Defines a filtering level of the displayed page. Eliminates the loading of parts of documents not coming from the domain of the page being loaded. Partly works as an AdBlocker

Syntax

Ret=object.GetShieldException ()

The GetShielException method syntax has these parts:

Element Description
Object The object placeholder represents an OrdoWebView2 control

Ret

oShieldException. The exceptions to the filter rule set by ShieldLevel
    oNoException = 0
    oDocument = 1        Elements of type Document will be displayed even if they had to be filtered
    oImage = 2              Elements of type Image will be displayed even if they had to be filtered
    oMedia = 4             Elements of type Media (Video...) will be displayed even if they had to be filtered
    oFont = 8                Elements of type Font will be displayed even if they had to be filtered
    oScript = 16            Elements of type Script will be displayed or executed even if they had to be filtered
These exceptions could have been combined with an OR operator

Remarks     

  • the Shield filtering can be tempered by defining an exception with ShielException

    • For example if  Ret = oImage ' (2) all the images of the page will be displayed even if they do not come from the site domain