CreatePermission() 공개 메소드

public CreatePermission ( ) : IPermission
리턴 IPermission
		public void Default () 
		{
			UIPermissionAttribute a = new UIPermissionAttribute (SecurityAction.Assert);
			Assert.AreEqual (UIPermissionClipboard.NoClipboard, a.Clipboard, "Clipboard");
			Assert.AreEqual (UIPermissionWindow.NoWindows, a.Window, "Window");
			Assert.AreEqual (a.ToString (), a.TypeId.ToString (), "TypeId");
			Assert.IsFalse (a.Unrestricted, "Unrestricted");

			UIPermission perm = (UIPermission) a.CreatePermission ();
			Assert.AreEqual (UIPermissionClipboard.NoClipboard, perm.Clipboard, "CreatePermission-Clipboard");
			Assert.AreEqual (UIPermissionWindow.NoWindows, perm.Window, "CreatePermission-Window");
		}
		public void Unrestricted () 
		{
			UIPermissionAttribute a = new UIPermissionAttribute (SecurityAction.Assert);
			a.Unrestricted = true;
			UIPermission perm = (UIPermission) a.CreatePermission ();
			Assert.AreEqual (UIPermissionClipboard.AllClipboard, perm.Clipboard, "Unrestricted-Clipboard");
			Assert.AreEqual (UIPermissionWindow.AllWindows, perm.Window, "Unrestricted-Window");
		}