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

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

Syntax

C#
public int IndexOfCaseInsensitive(
	string text
)
Visual Basic
Public Function IndexOfCaseInsensitive ( _
	text As String _
) As Integer
Visual C++
public:
int IndexOfCaseInsensitive(
	String^ 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 occurrence 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