August 2003
Intermediate to advanced
496 pages
11h 59m
English
An assembly can declaratively specify certain permission requests. For example, it can specify a minimal set of permissions that it absolutely requires. If the CLR determines that the required permissions are not to be granted, then the assembly will not even load. The assembly can also specify a nice-to-have set of permissions that, if not granted, will still allow the assembly to load. Assemblies can also specify permissions that are flat-out refused, avoiding the risk of having any dangerous permissions that are simply not needed by the assembly.
The PermissionRequest example shows how to make permission requests within an assembly. Three attributes are established using the UIPermission attribute, ...
Read now
Unlock full access