LEADTOOLS Medical (Leadtools.Medical.DataAccessLayer assembly)

GetElements(IEnumerable<ICatalogEntity>,ICatalog,Boolean) Method

Show in webframe





A collection of ICatalogEntity which properties will be returned.
The ICatalog which describes the provided entities.
If this parameter is set to true, properties that have null (Nothing in Visual Basic) values won't be returned.
Enumerate the ICatalogEntity properties annotated with EntityElementAttribute.
Syntax
'Declaration
 
Public Overloads Shared Function GetElements( _
   ByVal entities As IEnumerable(Of ICatalogEntity), _
   ByVal catalog As ICatalog, _
   ByVal ignoreNullValueItems As Boolean _
) As CatalogElement()
'Usage
 
Dim entities As IEnumerable(Of ICatalogEntity)
Dim catalog As ICatalog
Dim ignoreNullValueItems As Boolean
Dim value() As CatalogElement
 
value = CatalogDescriptor.GetElements(entities, catalog, ignoreNullValueItems)

            

            

Parameters

entities
A collection of ICatalogEntity which properties will be returned.
catalog
The ICatalog which describes the provided entities.
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 CatalogElement describing the properties annotated with EntityElementAttribute.
Remarks

The method will enumerate all the ICatalogEntity objects.

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

See Also

Reference

CatalogDescriptor Class
CatalogDescriptor Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.

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