confused in PrincipalPermission Class .. plz help
-
I m totally confused in PrincipalPermission Class, i tried to read details on mcdn but no use, can plz any1 tell me abt this class. MSDN says " Allows checks against the active principal (see IPrincipal) using the language constructs defined for both declarative and imperative security actions. This class cannot be inherited. " i m not getting checks active principal language constructs thanks in advance.
-
I m totally confused in PrincipalPermission Class, i tried to read details on mcdn but no use, can plz any1 tell me abt this class. MSDN says " Allows checks against the active principal (see IPrincipal) using the language constructs defined for both declarative and imperative security actions. This class cannot be inherited. " i m not getting checks active principal language constructs thanks in advance.
Basically, Active Principal is the security context for the current user. It says that security verifications can be made in 2 ways: declarative - in this case the security checks are implemented using attributes. Take a look here for Declarative Security[^] imperative - in this case the security checks are made in code. See this[^] for Imperative Security. Calin