Creates a new CollectionType for a sorted ISet<(Of <(<'T>)>)>.

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

Syntax

C#
CollectionType SortedSet<T>(
	string role,
	string propertyRef,
	bool embedded,
	IComparer<T> comparer
)
Visual Basic
Function SortedSet(Of T) ( _
	role As String, _
	propertyRef As String, _
	embedded As Boolean, _
	comparer As IComparer(Of T) _
) As CollectionType
Visual C++
generic<typename T>
CollectionType^ SortedSet(
	String^ role, 
	String^ propertyRef, 
	bool embedded, 
	IComparer<T>^ comparer
)

Parameters

role
Type: System..::..String
The role the 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.
embedded
Type: System..::..Boolean
Is embedded in XML (not supported yet)
comparer
Type: System.Collections.Generic..::..IComparer<(Of <(<'T>)>)>
The IComparer<(Of <(<'T>)>)> to use for the set.

Type Parameters

T
The type of elements in the collection.

Return Value

A GenericSetType<(Of <(<'T>)>)> for the specified role.

See Also