WebPermission.IsSubsetOf(IPermission) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the current WebPermission is a subset of the specified object.
public:
override bool IsSubsetOf(System::Security::IPermission ^ target);
public override bool IsSubsetOf(System.Security.IPermission target);
override this.IsSubsetOf : System.Security.IPermission -> bool
Public Overrides Function IsSubsetOf (target As IPermission) As Boolean
Parameters
- target
- IPermission
The WebPermission to compare to the current WebPermission.
Returns
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.
Exceptions
The target parameter is not an instance of WebPermission.
The current instance contains a Regex-encoded right and there is not exactly the same right found in the target instance.
Remarks
If the current WebPermission specifies a set of associated resources that is wholly contained by the target
parameter, then the current WebPermission is a subset of target
. This method overrides IsSubsetOf and is implemented to support the IPermission interface.