Project SQL function locate() Note: throws an exception outside of a QueryOver expression

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

Syntax

C#
public static int CharIndex(
	this string stringProperty,
	string theChar,
	int startLocation
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function CharIndex ( _
	stringProperty As String, _
	theChar As String, _
	startLocation As Integer _
) As Integer
Visual C++
[ExtensionAttribute]
public:
static int CharIndex(
	String^ stringProperty, 
	String^ theChar, 
	int startLocation
)

Parameters

stringProperty
Type: System..::..String

[Missing <param name="stringProperty"/> documentation for "M:NHibernate.Criterion.ProjectionsExtensions.CharIndex(System.String,System.String,System.Int32)"]

theChar
Type: System..::..String

[Missing <param name="theChar"/> documentation for "M:NHibernate.Criterion.ProjectionsExtensions.CharIndex(System.String,System.String,System.Int32)"]

startLocation
Type: System..::..Int32

[Missing <param name="startLocation"/> documentation for "M:NHibernate.Criterion.ProjectionsExtensions.CharIndex(System.String,System.String,System.Int32)"]

Return Value

[Missing <returns> documentation for "M:NHibernate.Criterion.ProjectionsExtensions.CharIndex(System.String,System.String,System.Int32)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also