Create WebPermission with the access rights for the specified URI regular expression.
Imports System.Text.RegularExpressions
Imports System.Net
Module Example
Public Sub Main()
Dim myRegex As New Regex("http://www\.domain\.com/.*")
Dim myWebPermission As New WebPermission(NetworkAccess.Connect, myRegex)
myWebPermission.Demand()
End Sub
End Module