URSA.Security.ResourceSecurityInfo.Deny C# (CSharp) Method

Deny() public method

Denies the specified claim type.
public Deny ( string claimType, string claimValue = null ) : ResourceSecurityInfo
claimType string Type of the claim.
claimValue string The claim value.
return ResourceSecurityInfo
        public ResourceSecurityInfo Deny(string claimType, string claimValue = null)
        {
            if (claimType == null)
            {
                throw new ArgumentNullException("claimType");
            }

            Disallow(claimType, claimValue);
            Denied.Add(claimType, claimValue);
            return this;
        }