PermissionSet.Equals(Object) Method

Definition

Determines whether the specified PermissionSet or NamedPermissionSet object is equal to the current PermissionSet.

C#
public override bool Equals(object? o);
C#
[System.Runtime.InteropServices.ComVisible(false)]
public override bool Equals(object obj);

Parameters

oobj
Object

The object to compare with the current PermissionSet.

Returns

true if the specified object is equal to the current PermissionSet object; otherwise, false.

Attributes

Remarks

Equality is determined by the permissions contained in the permission set specified by obj. obj can be either a PermissionSet object or a NamedPermissionSet object. If obj is a NamedPermissionSet, the name and description are ignored.

For more information, see Object.Equals(Object).

Applies to

Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)