Returns the index of the first occurence of text, case-insensitive.

Namespace:  NHibernate.SqlCommand
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Function IndexOfCaseInsensitive ( _
	text As String _
) As Integer
C#
public int IndexOfCaseInsensitive(
	string text
)
Visual C++
public:
int IndexOfCaseInsensitive(
	String^ text
)
JavaScript
function indexOfCaseInsensitive(text);

Parameters

text
Type: System..::.String
Text to look for in the SqlString. Must be in lower case.

Return Value

The index of the first occurence of text, or -1 if not found.

Remarks

The text must be located entirely in a string part of the SqlString. Searching for "a ? b" in an SqlString consisting of "a ", Parameter, " b" will result in no matches.

See Also