Returns a new System.Security.Permissions.FileIOPermission that is the union of the current instance and the specified object.
- other
- A System.Security.Permissions.FileIOPermission instance to combine with the current instance.
A new System.Security.Permissions.FileIOPermission instance that represents the union of the current instance and other . If the current instance or other is unrestricted, returns a System.Security.Permissions.FileIOPermission 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 file or directory names, returns null .
Type Reason ArgumentException other is not null and is not of type System.Security.Permissions.FileIOPermission .
Note:The result of a call to FileIOPermission.Union(System.Security.IPermission) is a permission that represents all of the access to files and directories represented by the current instance as well as the access to files and directories 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