Attempts to find a type by its full name. Throws a MappingException using the provided errorMessage in case of failure.

Namespace: NHibernate.Cfg.XmlHbmBinding
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
protected static Type ClassForFullNameChecked(
	string fullName,
	string errorMessage
)
Visual Basic
Protected Shared Function ClassForFullNameChecked ( _
	fullName As String, _
	errorMessage As String _
) As Type
Visual C++
protected:
static Type^ ClassForFullNameChecked(
	String^ fullName, 
	String^ errorMessage
)

Parameters

fullName
Type: System..::..String
name of the class to find
errorMessage
Type: System..::..String
Error message to use for the MappingException in case of failure. Should contain the {0} formatting placeholder.

Return Value

A Type instance.

Exceptions

ExceptionCondition
NHibernate..::..MappingException Thrown when there is an error loading the class.

See Also