Gets the hql query identified by the name.

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

Syntax

C#
public NamedQueryDefinition GetNamedQuery(
	string queryName
)
Visual Basic
Public Function GetNamedQuery ( _
	queryName As String _
) As NamedQueryDefinition
Visual C++
public:
virtual NamedQueryDefinition^ GetNamedQuery(
	String^ queryName
) sealed

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.

Implements

ISessionFactoryImplementor..::..GetNamedQuery(String)

See Also