IUserSessionGetEntitiesT, TManager Method
|
Retrieves from the content store by unique ID a collection of entities that implements the
IEntityTManager interface.
Namespace:
Ingeniux.CMS
Assembly:
Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax IEnumerable<T> GetEntities<T, TManager>(
string[] ids,
TManager manager
)
where T : new(), Entity<TManager>
where TManager : ITransactionalEntity
Function GetEntities(Of T As {New, Entity(Of TManager)}, TManager As ITransactionalEntity) (
ids As String(),
manager As TManager
) As IEnumerable(Of T)
generic<typename T, typename TManager>
where T : gcnew(), Entity<TManager>
where TManager : ITransactionalEntity
IEnumerable<T>^ GetEntities(
array<String^>^ ids,
TManager manager
)
abstract GetEntities :
ids : string[] *
manager : 'TManager -> IEnumerable<'T> when 'T : new() and Entity<'TManager> when 'TManager : ITransactionalEntity
Parameters
- ids
- Type: SystemString
Unique IDs of the entities to retrieve - manager
- Type: TManager
The manager that retrieves the entities
Type Parameters
- T
- Type of the entity to retrieve, Must be non-abstract type that implements the IEntityTManager interface.
- TManager
- The entity's manager type, which must implement ITransactionalEntity.
Return Value
Type:
IEnumerableTReturns collection of objects in the order of the provided IDs. Skips non-existing entities and entities that don't match the given entity/manager type.
See Also