Compares if two ModulePermissionInfo objects are equivalent/equal

Namespace: DotNetNuke.Security.Permissions
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public override bool Equals(
	Object obj
)
Visual Basic
Public Overrides Function Equals ( 
	obj As Object
) As Boolean

Parameters

obj
Type: System..::..Object
a ModulePermissionObject

Return Value

true if the permissions being passed represents the same permission in the current object

Remarks

This function is needed to prevent adding duplicates to the ModulePermissionCollection. ModulePermissionCollection.Contains will use this method to check if a given permission is already included in the collection.

See Also