System.Security.PermissionSet.IsEmpty C# (CSharp) Method

IsEmpty() public method

public IsEmpty ( ) : bool
return bool
        public bool IsEmpty() { return false; }
        public bool IsSubsetOf(PermissionSet target) { return false; }

Usage Example

		public void PermissionSetNull () 
		{
			// no exception is thrown
			PermissionSet ps = new PermissionSet (null);
#if NET_2_0
			Assert ("PermissionStateNull.IsUnrestricted", !ps.IsUnrestricted ());
			Assert ("PermissionStateNull.IsEmpty", ps.IsEmpty ());
#else
			Assert ("PermissionStateNull.IsUnrestricted", ps.IsUnrestricted ());
			Assert ("PermissionStateNull.IsEmpty", !ps.IsEmpty ());
#endif
			Assert ("PermissionStateNull.IsReadOnly", !ps.IsReadOnly);
			AssertEquals ("PermissionStateNull.ToXml().ToString()==ToString()", ps.ToXml ().ToString (), ps.ToString ());
		}
All Usage Examples Of System.Security.PermissionSet::IsEmpty