Leadtools.Medical.DataAccessLayer.Catalog Namespace > CatalogDescriptor Class > GetElements Method : GetElements(IEnumerable<ICatalogEntity>,ICatalog,Boolean) Method |
public static CatalogElement[] GetElements( IEnumerable<ICatalogEntity> entities, ICatalog catalog, bool ignoreNullValueItems )
'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)
public static CatalogElement[] GetElements( Windows.Foundation.Collections.IIterable //In WinRT the IEnumerableinterface is replaced by IIterable <ICatalogEntity> entities, ICatalog catalog, bool ignoreNullValueItems )
function Leadtools.Medical.DataAccessLayer.Catalog.CatalogDescriptor.GetElements(IEnumerable{ICatalogEntity},ICatalog,Boolean)( entities , catalog , ignoreNullValueItems )
public: static array<CatalogElement^>^ GetElements( IEnumerable<ICatalogEntity^>^ entities, ICatalog^ catalog, bool ignoreNullValueItems )
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.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2