вторник, 27 июля 2010 г.

.NET Tips and Tricks -Understand how permission requests work

.NET Tips and Tricks -Understand how permission requests work


Conclusion
In conclusion, the best way to remember how permission requests work is as follows:
  • SecurityAction.RequestMinimum = Code access security policy must grant the permission
  • SecurityAction.RequestRefuse = Will not accept even if code access security policy grants the permission
  • SecurityAction.RequestOptional = Do not grant the permission unless I request it
  • PermissionState.Unrestricted = All operations should be enforced by the permission
  • PermissionState.None = No operations should be enforced by the permission

Комментариев нет: