Create WebPermission class with the access rights for the specified URI.
Imports System.Text.RegularExpressions
Imports System.Net
Module Example
Public Sub Main()
Dim myWebPermission1 As New WebPermission(NetworkAccess.Connect, "http://www.domain.com/default.htm")
myWebPermission1.Demand()
End Sub
End Module