Imports System.Text.RegularExpressions
Imports System.Net
Imports System.Security.Permissions
Module Example
Public Sub Main()
Dim myWebPermission1 As New WebPermission(PermissionState.None)
myWebPermission1.ToXml().ToString()
Dim myWebPermission2 As New WebPermission(PermissionState.None)
myWebPermission2.FromXml(myWebPermission1.ToXml())
End Sub
End Module