Network C#

using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Text.RegularExpressions;
using System.Security.Permissions;
class MainClass
{
    public static void Main()
    {
        WebPermission targetPermission = new WebPermission();
        targetPermission.AddPermission(NetworkAccess.Connect, new Regex("www\\.google\\.com/Public/.*"));
        WebPermission connectPermission = new WebPermission();
        connectPermission.AddPermission(NetworkAccess.Connect, "www.google.com/Public/default.htm");
        Console.WriteLine("Is the second URI a subset of the first one?: " + connectPermission.IsSubsetOf(targetPermission));
    }
}