←Select platform

GetElementsCollection Method

Summary

Enumerates the ICatalogEntity properties annotated with EntityElementAttribute.

Syntax

C#
VB
C++
  
Public Shared Function GetElementsCollection( _ 
   ByVal matchingEntitiesCollection As Leadtools.Medical.Dataaccesslayer.MatchingParameterCollection, _ 
   ByVal catalog As Leadtools.Medical.Dataaccesslayer.Catalog.ICatalog, _ 
   ByVal ignoreNullValueItems As Boolean _ 
) As Collection(Of CatalogElement()) 

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 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.DataAccessLayer Assembly