SecurityIdentifier::CompareTo Method (SecurityIdentifier^)

 

Compares the current SecurityIdentifier object with the specified SecurityIdentifier object.

Namespace:   System.Security.Principal
Assembly:  mscorlib (in mscorlib.dll)

public:
virtual int CompareTo(
	SecurityIdentifier^ sid
) sealed

Parameters

sid
Type: System.Security.Principal::SecurityIdentifier^

The object to compare with the current object.

Return Value

Type: System::Int32

A signed number indicating the relative values of this instance and sid.

Return Value

Description

Less than zero

This instance is less than sid.

Zero

This instance is equal to sid.

Greater than zero

This instance is greater than sid.

.NET Framework
Available since 2.0
Return to top
Show: