PST .NET Class Library
Show/Hide TOC

# DirectoryEntryCompareTo Method

Compares this instance with the specified DirectoryEntry object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified DirectoryEntry.

## Definition

Namespace: Independentsoft.IO.StructuredStorage
Assembly: Independentsoft.Pst (in Independentsoft.Pst.dll) Version: 1.2.900.17830
C#

    public int CompareTo(
    	Object obj
    )

VB

    Public Function CompareTo (
    	obj As Object
    ) As Integer

#### Parameters

obj Object
  A DirectoryEntry

#### Return Value

Int32
A 32-bit signed integer that indicates whether this instance precedes, follows, or appears in the same position in the sort order as the value parameter.

#### Implements

IComparableCompareTo(Object)

## See Also

#### Reference

DirectoryEntry Class
Independentsoft.IO.StructuredStorage Namespace