GetElementsCollection Method

Summary
Enumerates the ICatalogEntity properties annotated with EntityElementAttribute.
Syntax
C#
C++/CLI
public: 
static Collection<array<CatalogElement^>>^ GetElementsCollection(  
   MatchingParameterCollection^ matchingEntitiesCollection, 
   ICatalog^ catalog, 
   bool ignoreNullValueItems 
)  

Parameters

matchingEntitiesCollection
A Leadtools.Medical.DataAccessLayer.MatchingParameterCollection that contains ICatalogEntity objects whose properties will be returned.

catalog
The ICatalog interface that describes the entities in the  matchingEntitiesCollection.

ignoreNullValueItems
If this parameter is set to true, properties that have null (Nothing in VB) values won't be returned.

Return Value

A Collection of CatalogElement array describing the properties annotated with EntityElementAttributein the ICatalogEntity.

Remarks

All the ICatalogEntities in each Leadtools.Medical.DataAccessLayer.MatchingParameterList will be added as a separate array of CatalogElement in the Collection.

For each ICatalogEntity all properties annotated with the EntityElementAttribute will be enumerated. A key for each ICatalogEntity will be retrieved using ICatalogEntity.CatalogKey method. A key for each property will be retrieved using the following method: If the EntityElementAttribute.Name has a value (not null or empty string) then it will be used as the key value otherwise the actual Name of the System.Reflection.PropertyInfo will be used as the key. The CatalogDescriptor will use the ICatalog object to find the information of this catalog element and fill them in a CatalogElement object.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.DataAccessLayer Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.