PermissionSet.AddPermission Method (IPermission)
Adds a specified permission to the PermissionSet.
Assembly: mscorlib (in mscorlib.dll)
If a permission of the same type as the added permission already exists in the PermissionSet, the new permission is the union of the existing permission object and the specified permission object. For example, if a permission that implements IUnrestrictedPermission is added to an UnrestrictedPermissionSet, the resulting union is the original UnrestrictedPermissionSet.
Notes to Inheritors:
The following code example shows the use of the PermissionSet class.method to add a permission to a permission set. This code example is part of a larger example provided for the
Available since 1.1