Returns a new System.Security.Permissions.EnvironmentPermission that is the union of the current instance and the specified object.
- other
- A System.Security.Permissions.EnvironmentPermission instance to combine with the current instance.
A new System.Security.Permissions.EnvironmentPermission instance that represents the union of the current instance and other . If the current instance or other is unrestricted, returns a System.Security.Permissions.EnvironmentPermission instance that is unrestricted. If other is null, returns a copy of the current instance via the System.Security.IPermission.Copy method. If the current instance and other do not specify any environment variables, returns null .
Type Reason ArgumentException other is not null and is not of type System.Security.Permissions.EnvironmentPermission .
Note:The result of a call to EnvironmentPermission.Union(System.Security.IPermission) is a permission that represents the access to environment variables represented by the current instance as well as the access to environment variables represented by other. Any demand that passes either the current instance or other passes their union.
This method overrides System.Security.CodeAccessPermission.Union(System.Security.IPermission) and is implemented to support the System.Security.IPermission interface.
Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0