Namespace:
NHibernate.Property
Assembly: NHibernate (in NHibernate.dll)
Assembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function GetSetter ( _ type As Type, _ propertyName As String _ ) As ISetter |
C# |
---|
public ISetter GetSetter( Type type, string propertyName ) |
Visual C++ |
---|
public: virtual ISetter^ GetSetter( Type^ type, String^ propertyName ) sealed |
JavaScript |
---|
function getSetter(type, propertyName); |
Parameters
- type
- Type: System..::.Type
The Type to find the mapped Property in.
- propertyName
- Type: System..::.String
The name of the mapped Property to set.
Return Value
The FieldSetter to use to set the value of the Property on an instance of the Type.Implements
IPropertyAccessor..::.GetSetter(Type, String)
Exceptions
Exception | Condition |
---|---|
NHibernate..::.PropertyNotFoundException | Thrown when a Field for the Property specified by the propertyName using the IFieldNamingStrategy could not be found in the Type. |