System.Security.PermissionSet.Equals Method

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

Syntax

[System.Runtime.InteropServices.ComVisible(false)]
public override bool Equals (object obj)

Parameters

obj
The object to compare with the current System.Security.PermissionSet.

Returns

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

Remarks

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

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

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0