Compares two roles returns an indication of their relative values.

Namespace:  Novalys.VisualGuard.Security.Membership
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 3.2.912.1 (3.2.912.01)

Syntax

C#
public int Compare(
	VGRole x,
	VGRole y
)
Visual Basic (Declaration)
Public Function Compare ( _
	x As VGRole, _
	y As VGRole _
) As Integer

Parameters

x
Type: Novalys.VisualGuard.Security.Membership..::.VGRole
the first role to compare.
y
Type: Novalys.VisualGuard.Security.Membership..::.VGRole
the second tole to compare.

Return Value

Less than zero when x is less than y. Zero when x equals y. Greater than zero when x is greater than y.

Implements

IComparer<(Of <(T>)>)..::.Compare(T, T)

See Also