Assert | Asserts that the calling code can access the resource identified by the current permission object, even if callers have not been granted permission to access the resource. Calling the Assert method stops the check on previous callers in the call chain. Therefore, even if previous callers do not have the requisite permissions, they can still access resources.
Warning: Because calling the Assert method removes the requirement that all code in the call chain must be granted permission to access the specified resource, it can open up security holes if used incorrectly or inappropriately. Therefore, it should be used with great caution. |
Demand | Determines at run-time whether all callers in the call chain have been granted the permission specified by the current permission object. |
DemandImmediate | Determines whether the immediate caller of the code that calls this method has been granted the permission specified by the current permission object. |
Deny | Deny callers in the call chain the ability to access the resource specified by the current permission object. This method prevents callers from accessing the protected resource even if they have been granted permission to access it. |
PermitOnly | Ensures that only the resources specified by this permission object can be accessed, even if the code has been granted permission to access other resources. |