When implemented by a class, create a "setter" for the mapped property.
Namespace:
NHibernate.PropertyAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Function GetSetter ( _ theClass As Type, _ propertyName As String _ ) As ISetter |
C# |
---|
ISetter GetSetter( Type theClass, string propertyName ) |
Visual C++ |
---|
ISetter^ GetSetter( Type^ theClass, String^ propertyName ) |
JavaScript |
---|
function getSetter(theClass, propertyName); |
Parameters
- theClass
- Type: System..::.Type
The Type to find the Property in.
- propertyName
- Type: System..::.String
The name of the mapped Property to set.
Return Value
The ISetter to use to set the value of the Property on an instance of the Type.
Exceptions
Exception | Condition |
---|---|
NHibernate..::.PropertyNotFoundException | Thrown when a Property specified by the propertyName could not be found in the Type. |