N2 API Documentation
GetDetailCollection Method (collectionName, createWhenEmpty)
NamespacesN2ContentItemGetDetailCollection(String, Boolean)
Gets a named detail collection.
Declaration Syntax
C#Visual BasicVisual C++
public virtual DetailCollection GetDetailCollection(
	string collectionName,
	bool createWhenEmpty
)
Public Overridable Function GetDetailCollection ( _
	collectionName As String, _
	createWhenEmpty As Boolean _
) As DetailCollection
public:
virtual DetailCollection^ GetDetailCollection (
	String^ collectionName, 
	bool createWhenEmpty
)
Parameters
collectionName (String)
The name of the detail collection to get.
createWhenEmpty (Boolean)
Wether a new collection should be created if none exists. Setting this to false means null will be returned if no collection exists.
Return Value
A new or existing detail collection or null if the createWhenEmpty parameter is false and no collection with the given name exists..

Assembly: N2 (Module: N2) Version: 1.0.204.35916