LEADTOOLS Medical (Leadtools.Medical.DataAccessLayer assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
GetElements(ICatalogEntity,ICatalog,Boolean) Method
See Also 
Leadtools.Medical.DataAccessLayer.Catalog Namespace > CatalogDescriptor Class > GetElements Method : GetElements(ICatalogEntity,ICatalog,Boolean) Method



entity
An Leadtools.Medical.DataAccessLayer.Catalog.ICatalogEntity whose properties will be returned.
catalog
The Leadtools.Medical.DataAccessLayer.Catalog.ICatalog interface that describes the provided entity.
ignoreNullValueItems
If this parameter is set to true, properties that have null (Nothing in Visual Basic) values won't be returned.
entity
An Leadtools.Medical.DataAccessLayer.Catalog.ICatalogEntity whose properties will be returned.
catalog
The Leadtools.Medical.DataAccessLayer.Catalog.ICatalog interface that describes the provided entity.
ignoreNullValueItems
If this parameter is set to true, properties that have null (Nothing in Visual Basic) values won't be returned.
Enumerate the Leadtools.Medical.DataAccessLayer.Catalog.ICatalogEntity properties annotated with EntityElementAttribute.

Syntax

Visual Basic (Declaration) 
Overloads Public Shared Function GetElements( _
   ByVal entity As ICatalogEntity, _
   ByVal catalog As ICatalog, _
   ByVal ignoreNullValueItems As Boolean _
) As CatalogElement()
Visual Basic (Usage)Copy Code
Dim entity As ICatalogEntity
Dim catalog As ICatalog
Dim ignoreNullValueItems As Boolean
Dim value() As CatalogElement
 
value = CatalogDescriptor.GetElements(entity, catalog, ignoreNullValueItems)
C# 
public static CatalogElement[] GetElements( 
   ICatalogEntity entity,
   ICatalog catalog,
   bool ignoreNullValueItems
)
C++/CLI 
public:
static array<CatalogElement^>^ GetElements( 
   ICatalogEntity^ entity,
   ICatalog^ catalog,
   bool ignoreNullValueItems
) 

Parameters

entity
An Leadtools.Medical.DataAccessLayer.Catalog.ICatalogEntity whose properties will be returned.
catalog
The Leadtools.Medical.DataAccessLayer.Catalog.ICatalog interface that describes the provided entity.
ignoreNullValueItems
If this parameter is set to true, properties that have null (Nothing in Visual Basic) values won't be returned.

Return Value

An array of Leadtools.Medical.DataAccessLayer.Catalog.CatalogElement objects describing the properties annotated with EntityElementAttribute.

Remarks

For the provided Leadtools.Medical.DataAccessLayer.Catalog.ICatalogEntity all properties annotated with the EntityElementAttribute will be enumerated.
A key for the Leadtools.Medical.DataAccessLayer.Catalog.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 Leadtools.Medical.DataAccessLayer.Catalog.ICatalog object to find the information of this catalog element and fill them in a Leadtools.Medical.DataAccessLayer.Catalog.CatalogElement object.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Medical.DataAccessLayer requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features