Adds URI string with the specified access rights to the current WebPermission.
Imports System.Text.RegularExpressions
Imports System.Net
Module Example
Public Sub Main()
Dim myWebPermission1 As New WebPermission()
myWebPermission1.AddPermission(NetworkAccess.Connect, "http://www.domain.com/default.htm")
myWebPermission1.AddPermission(NetworkAccess.Connect, "http://www.domain.com/default.htm")
myWebPermission1.Demand()
End Sub
End Module
Related examples in the same category