GetElementsCollection Method

Summary
Enumerates the ICatalogEntity properties annotated with EntityElementAttribute.
Syntax
C#
VB
C++
  
Public Shared Function GetElementsCollection( _ 
   ByVal matchingEntitiesCollection As MatchingParameterCollection, _ 
   ByVal catalog As ICatalog, _ 
   ByVal ignoreNullValueItems As Boolean _ 
) As Collection(Of CatalogElement()) 
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 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.DataAccessLayer Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.