Initializes a new instance of the PropertyNotFoundException class, used when a field is missing.

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

Syntax

C#
public PropertyNotFoundException(
	Type targetType,
	string propertyName
)
Visual Basic
Public Sub New ( _
	targetType As Type, _
	propertyName As String _
)
Visual C++
public:
PropertyNotFoundException(
	Type^ targetType, 
	String^ propertyName
)

Parameters

targetType
Type: System..::..Type
The Type that is missing the field
propertyName
Type: System..::..String
The name of the missing property

See Also