←Select platform

GetElements(ICatalogEntity,ICatalog,Boolean) Method

Summary

Enumerates the ICatalogEntity properties annotated with EntityElementAttribute.

Syntax

C#
VB
C++
public static [Leadtools.Medical.Dataaccesslayer.Catalog.CatalogElement[]](catalog-catalogelement.html) GetElements(  
   Leadtools.Medical.Dataaccesslayer.Catalog.ICatalogEntity entity, 
   Leadtools.Medical.Dataaccesslayer.Catalog.ICatalog catalog, 
   bool ignoreNullValueItems 
) 

Parameters

entity
An ICatalogEntity whose properties will be returned.

catalog
The ICatalog interface that describes the provided entity.

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

Return Value

An array of CatalogElement objects describing the properties annotated with EntityElementAttribute.

Remarks

For the provided ICatalogEntity all properties annotated with the EntityElementAttribute will be enumerated. A key for the 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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Medical.DataAccessLayer Assembly
Click or drag to resize