System.Security.Permissions.FileIOPermission.IsSubsetOf Method

Determines whether the current permission is a subset of the specified permission.

Syntax

public override bool IsSubsetOf (System.Security.IPermission target)

Parameters

target
A permission that is to be tested for the subset relationship. This permission must be the same type as the current permission.

Returns

true if the current permission is a subset of the specified permission; otherwise, false.

Exceptions

TypeReason
ArgumentException target is not null and is not of type System.Security.Permissions.FileIOPermission .

Remarks

The current permission is a subset of the specified permission if the current permission specifies a set of operations that is contained by the specified permission. For example, a permission that represents read access to C:\example.txt is a subset of a permission that represents read access to C:\. If this method returns true, the current permission represents no more access to the protected resource than does the specified permission.

Requirements

Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0