Click or drag to resize

IFolderGetT Method (String, Boolean, Int32)

Retrieves all objects of a specific type contained in the folder up to a maximum number and returns them with a specific business object interface. This method fails if at least one of the objects specified by pObjType does not implement the T business object interface.

Namespace:  PDTec.IceNet.Core.Model
Assembly:  PDTec.IceNet.Core (in PDTec.IceNet.Core.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
T[] Get<T>(
	string objTypeName,
	bool inclSubtypes,
	int maxCount
)
where T : class, IObject

Parameters

objTypeName
Type: SystemString
The object type name
inclSubtypes
Type: SystemBoolean
Indicates if objects of subtypes qualify as well
maxCount
Type: SystemInt32
The maximum size of the result collection

Type Parameters

T
The business object interface type

Return Value

Type: T
The objects (as specified)
Remarks
Contrary to popular belief it is necessary to explicitly specify the type of the objects to be retrieved. There is no 1:1 mapping between object types and business object interface types in general.
See Also