Initializes a new instance of a SortedSetType class for a specific role using the IComparer to do the sorting.

Namespace:  NHibernate.Type
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Sub New ( _
	role As String, _
	propertyRef As String, _
	comparer As IComparer _
)
C#
public SortedSetType(
	string role,
	string propertyRef,
	IComparer comparer
)
Visual C++
public:
SortedSetType(
	String^ role, 
	String^ propertyRef, 
	IComparer^ comparer
)
JavaScript
NHibernate.Type.SortedSetType = function(role, propertyRef, comparer);

Parameters

role
Type: System..::.String
The role the persistent collection is in.
propertyRef
Type: System..::.String
The name of the property in the owner object containing the collection ID, or nullNothingnullptra null reference (Nothing in Visual Basic) if it is the primary key.
comparer
Type: System.Collections..::.IComparer
The IComparer to use for the sorting.

See Also