NLog Logging Library

LogLevel.CompareTo Method 

[This is preliminary documentation and subject to change.]

Compares the level to the other LogLevel object.

[Visual Basic]
NotOverridable Public Function CompareTo( _
   ByVal obj As Object _
) As Integer _
    Implements IComparable.CompareTo
[C#]
public int CompareTo(
   object obj
);

Parameters

obj
the object object

Return Value

a value less than zero when this logger's Ordinal is less than the other logger's ordinal, 0 when they are equal and greater than zero when this ordinal is greater than the other ordinal.

Implements

IComparable.CompareTo

See Also

LogLevel Class | NLog Namespace