IsSubsetOf Method
When implemented by a derived class, determines whether the current permission is a subset of the specified permission.
Syntax
'Declaration Public Overrides NotOverridable Function IsSubsetOf( _ ByVal target As IPermission _ ) As Boolean
'Usage Dim instance As MessageQueuePermission Dim target As IPermission Dim value As Boolean value = instance.IsSubsetOf(target)
public override bool IsSubsetOf( IPermission target )
public: bool IsSubsetOf( IPermission^ target ) override
Parameters
- target
- A permission that is to be tested for the subset relationship. This permission must be of the same type as the current permission.
Return Value
true if the current permission is a subset of the specified permission; otherwise, false.
Exceptions
Exception | Description |
---|---|
System.ArgumentException | The target parameter is not null and is not of the same type as the current permission. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also
Reference
MessageQueuePermission Class
MessageQueuePermission Members
Base Implementation in IsSubsetOf