System.Security.Principal.SecurityIdentifier.CompareTo Method

Compares the current System.Security.Principal.SecurityIdentifier object with the specified System.Security.Principal.SecurityIdentifier object.

Syntax

public int CompareTo (SecurityIdentifier sid)

Parameters

sid
The object to compare with the current object.

Returns

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

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.

Remarks

Documentation for this section has not yet been entered.

Requirements

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