This documentation is archived and is not being maintained.
AspNetHostingPermission.Union Method
.NET Framework 1.1
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.
Creates a permission that is the union of the current permission and the specified permission.
[Visual Basic] Overrides Public Function Union( _ ByVal target As IPermission _ ) As IPermission Implements IPermission.Union [C#] public override IPermission Union( IPermission target ); [C++] public: IPermission* Union( IPermission* target ); [JScript] public override function Union( target : IPermission ) : IPermission;
Parameters
- target
- A permission to combine with the current permission. It must be of the same type as the current permission.
Return Value
An IPermission that represents the union of the current permission and the specified permission.
Implements
Exceptions
| Exception Type | Condition |
|---|---|
| ArgumentException | target is not an AspNetHostingPermission. |
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
AspNetHostingPermission Class | AspNetHostingPermission Members | System.Web Namespace
Show: