Determines whether the current System.Net.WebPermission is a subset of the specified object.
- target
- The System.Net.WebPermission to compare to the current System.Net.WebPermission.
true if the current instance is a subset of the target parameter; otherwise, false. If the target is null, the method returns true for an empty current permission that is not unrestricted and false otherwise.
Type Reason ArgumentException target is not of type System.Net.WebPermission.
If the current System.Net.WebPermission specifies a set of associated resources that is wholly contained by the target parameter, then the current System.Net.WebPermission is a subset of target. This method overrides WebPermission.IsSubsetOf(System.Security.IPermission) and is implemented to support the System.Security.IPermission interface.