Gets the hql query identified by the name.

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

Syntax

C#
NamedQueryDefinition GetNamedQuery(
	string queryName
)
Visual Basic
Function GetNamedQuery ( _
	queryName As String _
) As NamedQueryDefinition
Visual C++
NamedQueryDefinition^ GetNamedQuery(
	String^ queryName
)

Parameters

queryName
Type: System..::..String
The name of that identifies the query.

Return Value

A hql query or nullNothingnullptra null reference (Nothing in Visual Basic) if the named query does not exist.

See Also