Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Union method

WebPartPermission.Union method

NOTE: This API is now obsolete.

Creates a permission that is the union of the current permission and the specified permission.

Namespace:  Microsoft.SharePoint.Security
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
)

Parameters

target
Type: System.Security.IPermission

Return value

Type: System.Security.IPermission
System.Security.IPermission A new permission that represents the union of the current permission and the specified permission.

Implements

IPermission.Union(IPermission)

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.

Exceptions

Exception Type

Condition

ArgumentException

The other parameter is not a null reference (Nothing in Visual Basic) and is not of the same type as the current permission.

Show:
© 2015 Microsoft