- matchingEntitiesCollection
- A MatchingParameterCollection that contains Leadtools.Medical.DataAccessLayer.Catalog.ICatalogEntity objects whose properties will be returned.
- catalog
- The Leadtools.Medical.DataAccessLayer.Catalog.ICatalog interface that describes the entities in the matchingEntitiesCollection.
- ignoreNullValueItems
- If this parameter is set to true, properties that have null (Nothing in Visual Basic) values won't be returned.
Visual Basic (Declaration) | |
---|---|
Public Shared Function GetElementsCollection( _ ByVal matchingEntitiesCollection As MatchingParameterCollection, _ ByVal catalog As ICatalog, _ ByVal ignoreNullValueItems As Boolean _ ) As Collection(Of CatalogElement()) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim matchingEntitiesCollection As MatchingParameterCollection Dim catalog As ICatalog Dim ignoreNullValueItems As Boolean Dim value As Collection(Of CatalogElement()) value = CatalogDescriptor.GetElementsCollection(matchingEntitiesCollection, catalog, ignoreNullValueItems) |
C# | |
---|---|
public static Collection<CatalogElement[]> GetElementsCollection( MatchingParameterCollection matchingEntitiesCollection, ICatalog catalog, bool ignoreNullValueItems ) |
C++/CLI | |
---|---|
public: static Collection<array<CatalogElement^>>^ GetElementsCollection( MatchingParameterCollection^ matchingEntitiesCollection, ICatalog^ catalog, bool ignoreNullValueItems ) |
Parameters
- matchingEntitiesCollection
- A MatchingParameterCollection that contains Leadtools.Medical.DataAccessLayer.Catalog.ICatalogEntity objects whose properties will be returned.
- catalog
- The Leadtools.Medical.DataAccessLayer.Catalog.ICatalog interface that describes the entities in the matchingEntitiesCollection.
- ignoreNullValueItems
- If this parameter is set to true, properties that have null (Nothing in Visual Basic) values won't be returned.
Return Value
A Collection of Leadtools.Medical.DataAccessLayer.Catalog.CatalogElement array describing the properties annotated with EntityElementAttributein the Leadtools.Medical.DataAccessLayer.Catalog.ICatalogEntity.All the ICatalogEntities in each MatchingParameterList will be added as a separate array of Leadtools.Medical.DataAccessLayer.Catalog.CatalogElement in the Collection.
For each Leadtools.Medical.DataAccessLayer.Catalog.ICatalogEntity all properties annotated with the EntityElementAttribute will be enumerated.
A key for each 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.
For each Leadtools.Medical.DataAccessLayer.Catalog.ICatalogEntity all properties annotated with the EntityElementAttribute will be enumerated.
A key for each 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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7