CertInfo.CompareTo Method (Object)

 

Compares the thumbprint of the current certificate to the thumbprint of the specified certificate.

Namespace:   System.Web.Security.SingleSignOn
Assembly:  System.Web.Security.SingleSignOn (in System.Web.Security.SingleSignOn.dll)

Syntax

public int CompareTo(
    object o
)
public:
virtual int CompareTo(
    Object^ o
) sealed
abstract CompareTo : 
        o:Object -> int
override CompareTo : 
        o:Object -> int
Public Function CompareTo (
    o As Object
) As Integer

Parameters

Return Value

Type: System.Int32

An integer that indicates the result of the comparison.

Value

Condition

-1

The value of this instance is less than the value of o.

0

The value of this instance is equal to the value of o.

1

The value of this instance is greater than the value of o. Or, the value is a null reference (Nothing in Visual Basic).

Implements

IComparable.CompareTo(Object)

Exceptions

Exception Condition
CertificateException

Thrown if the object is of neither type.

See Also

CertInfo Class
System.Web.Security.SingleSignOn Namespace

Return to top