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

Parameters

stringProperty
Type: System..::..String

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

Return Value

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

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