System.Web.AspNetHostingPermission.IsUnrestricted C# (CSharp) Method

IsUnrestricted() public method

public IsUnrestricted ( ) : bool
return bool
        public bool IsUnrestricted() {
            return _level == AspNetHostingPermissionLevel.Unrestricted;
        }

Usage Example

		public void ConstructorState_Deny_Unrestricted ()
		{
			AspNetHostingPermission p = new AspNetHostingPermission (PermissionState.None);
			Assert.AreEqual (AspNetHostingPermissionLevel.None, p.Level, "Level");
			Assert.IsFalse (p.IsUnrestricted (), "IsUnrestricted");
			CommonTests (p);
		}
All Usage Examples Of System.Web.AspNetHostingPermission::IsUnrestricted