Aspectacular.AuthorizationDemandAttribute.AuthorizationDemandAttribute C# (CSharp) 메소드

AuthorizationDemandAttribute() 보호된 메소드

protected AuthorizationDemandAttribute ( bool trueDemandAny_falseDemandAll, string demandedClaims ) : System.Security.Claims
trueDemandAny_falseDemandAll bool
demandedClaims string
리턴 System.Security.Claims
        protected AuthorizationDemandAttribute(bool trueDemandAny_falseDemandAll, string[] demandedClaims)
        {
            if(demandedClaims.IsNullOrEmpty())
                throw new ArgumentNullException("demandedClaims collection cannot be empty.");

            this.DemandAny = trueDemandAny_falseDemandAll;
            this.DemandedClaims = demandedClaims;
        }