PermissionSet.IsSubsetOf(PermissionSet) 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 PermissionSet is a subset of the specified PermissionSet.
public:
virtual bool IsSubsetOf(System::Security::PermissionSet ^ target);
public:
bool IsSubsetOf(System::Security::PermissionSet ^ target);
public virtual bool IsSubsetOf(System.Security.PermissionSet target);
public bool IsSubsetOf(System.Security.PermissionSet target);
abstract member IsSubsetOf : System.Security.PermissionSet -> bool
override this.IsSubsetOf : System.Security.PermissionSet -> bool
member this.IsSubsetOf : System.Security.PermissionSet -> bool
Public Overridable Function IsSubsetOf (target As PermissionSet) As Boolean
Public Function IsSubsetOf (target As PermissionSet) As Boolean
Parameters
- target
- PermissionSet
The permission set to test for the subset relationship. This must be either a PermissionSet or a NamedPermissionSet.
Returns
true if the current PermissionSet is a subset of the target parameter; otherwise, false.
Remarks
A PermissionSet is a subset of the target PermissionSet if all demands that succeed for the PermissionSet also succeed for the target. That is, the target contains at least the permissions contained in the subset.