Compares if two ModulePermissionInfo objects are equivalent/equal

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

Syntax

C#
public bool Equals(
	ModulePermissionInfo other
)
Visual Basic
Public Function Equals ( 
	other As ModulePermissionInfo
) As Boolean

Parameters

other
Type: DotNetNuke.Security.Permissions..::..ModulePermissionInfo
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