Click or drag to resize

IStringJavaObjectCompareTo 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.9.260611-9a148513a79c26cdd7f1dde468f4f9e06ef3bc7e
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