Project SQL function substring() 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 string Substr(
	this string stringProperty,
	int startIndex,
	int length
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function Substr ( _
	stringProperty As String, _
	startIndex As Integer, _
	length As Integer _
) As String
Visual C++
[ExtensionAttribute]
public:
static String^ Substr(
	String^ stringProperty, 
	int startIndex, 
	int length
)

Parameters

stringProperty
Type: System..::..String

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

startIndex
Type: System..::..Int32

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

length
Type: System..::..Int32

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

Return Value

[Missing <returns> documentation for "M:NHibernate.Criterion.ProjectionsExtensions.Substr(System.String,System.Int32,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