CreatePermission() публичный Метод

public CreatePermission ( ) : IPermission
Результат IPermission
		public void Default () 
		{
			IsolatedStorageFilePermissionAttribute a = new IsolatedStorageFilePermissionAttribute (SecurityAction.Assert);
			Assert.AreEqual (IsolatedStorageContainment.None, a.UsageAllowed, "UsageAllowed");
			Assert.AreEqual (0, a.UserQuota, "UserQuota");
			Assert.AreEqual (a.ToString (), a.TypeId.ToString (), "TypeId");
			Assert.IsFalse (a.Unrestricted, "Unrestricted");

			IsolatedStorageFilePermission perm = (IsolatedStorageFilePermission) a.CreatePermission ();
			Assert.AreEqual (IsolatedStorageContainment.None, perm.UsageAllowed, "CreatePermission-UsageAllowed");
			Assert.AreEqual (0, perm.UserQuota, "CreatePermission-UserQuota");
		}
		public void Unrestricted () 
		{
			IsolatedStorageFilePermissionAttribute a = new IsolatedStorageFilePermissionAttribute (SecurityAction.Assert);
			a.Unrestricted = true;

			IsolatedStorageFilePermission perm = (IsolatedStorageFilePermission) a.CreatePermission ();
			Assert.IsTrue (perm.IsUnrestricted (), "CreatePermission.IsUnrestricted");
			Assert.AreEqual (IsolatedStorageContainment.UnrestrictedIsolatedStorage, perm.UsageAllowed, "CreatePermission.UsageAllowed");
			Assert.AreEqual (Int64.MaxValue, perm.UserQuota, "CreatePermission.UserQuota");
		}