NOTE: This API is now obsolete.
Creates a permission that is the union of the current permission and the specified permission.
Assembly: Microsoft.SharePoint.Security (in Microsoft.SharePoint.Security.dll)
[ObsoleteAttribute("Web Part permissions are obsolete and no longer required")] public override IPermission Union( IPermission target )
- Type: System.Security.IPermission
Return valueType: System.Security.IPermission
System.Security.IPermission A new permission that represents the union of the current permission and the specified permission.
The result of a call to Union is a permission that represents all the operations represented by both the current permission and the specified permission. Any demand that passes either permission passes their union.
The other parameter is not a null reference (Nothing in Visual Basic) and is not of the same type as the current permission.