Apply a "like" restriction in a QueryOver expression 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 bool IsLike(
	this string projection,
	string comparison,
	MatchMode matchMode,
	Nullable<char> escapeChar
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function IsLike ( _
	projection As String, _
	comparison As String, _
	matchMode As MatchMode, _
	escapeChar As Nullable(Of Char) _
) As Boolean
Visual C++
[ExtensionAttribute]
public:
static bool IsLike(
	String^ projection, 
	String^ comparison, 
	MatchMode^ matchMode, 
	Nullable<wchar_t> escapeChar
)

Parameters

projection
Type: System..::..String

[Missing <param name="projection"/> documentation for "M:NHibernate.Criterion.RestrictionExtensions.IsLike(System.String,System.String,NHibernate.Criterion.MatchMode,System.Nullable{System.Char})"]

comparison
Type: System..::..String

[Missing <param name="comparison"/> documentation for "M:NHibernate.Criterion.RestrictionExtensions.IsLike(System.String,System.String,NHibernate.Criterion.MatchMode,System.Nullable{System.Char})"]

matchMode
Type: NHibernate.Criterion..::..MatchMode

[Missing <param name="matchMode"/> documentation for "M:NHibernate.Criterion.RestrictionExtensions.IsLike(System.String,System.String,NHibernate.Criterion.MatchMode,System.Nullable{System.Char})"]

escapeChar
Type: System..::..Nullable<(Of <(<'Char>)>)>

[Missing <param name="escapeChar"/> documentation for "M:NHibernate.Criterion.RestrictionExtensions.IsLike(System.String,System.String,NHibernate.Criterion.MatchMode,System.Nullable{System.Char})"]

Return Value

[Missing <returns> documentation for "M:NHibernate.Criterion.RestrictionExtensions.IsLike(System.String,System.String,NHibernate.Criterion.MatchMode,System.Nullable{System.Char})"]

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