Click or drag to resize

IStringJavaObjectCompareTo(String) Method

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

Namespace: MASES.JCOBridge.C2JBridge.JVMInterop
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntax
int CompareTo(
	string strB
)

Parameters

strB  String
The string to compare with this instance.

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 strB parameter.Value Condition Less than zero This instance precedes strB. Zero This instance has the same position in the sort order as strB. Greater than zero This instance follows strB.-or- strB is null.
Exceptions
ExceptionCondition
InvalidOperationExceptionIf current instance is not a JVM string
See Also