Creates a new CollectionType for an Array.

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

Syntax

C#
CollectionType Array(
	string role,
	string propertyRef,
	bool embedded,
	Type elementClass
)
Visual Basic
Function Array ( _
	role As String, _
	propertyRef As String, _
	embedded As Boolean, _
	elementClass As Type _
) As CollectionType
Visual C++
CollectionType^ Array(
	String^ role, 
	String^ propertyRef, 
	bool embedded, 
	Type^ elementClass
)

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)
elementClass
Type: System..::..Type
The Type to use to create the array.

Return Value

An ArrayType for the specified role.

See Also