LEADTOOLS Medical (Leadtools.Medical.DataAccessLayer assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
GetInstance Method
See Also 
Leadtools.Medical.DataAccessLayer Namespace > CatalogFactory Class : GetInstance Method



configView
An IDataAccessConfigurationView object which contains configuration about the underlying type of the CatalogFactory to create.
configView
An IDataAccessConfigurationView object which contains configuration about the underlying type of the CatalogFactory to create.
Creates a new instance of the CatalogFactory class.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetInstance( _
   ByVal configView As IDataAccessConfigurationView _
) As CatalogFactory
Visual Basic (Usage)Copy Code
Dim configView As IDataAccessConfigurationView
Dim value As CatalogFactory
 
value = CatalogFactory.GetInstance(configView)
C# 
public static CatalogFactory GetInstance( 
   IDataAccessConfigurationView configView
)
C++/CLI 
public:
static CatalogFactory^ GetInstance( 
   IDataAccessConfigurationView^ configView
) 

Parameters

configView
An IDataAccessConfigurationView object which contains configuration about the underlying type of the CatalogFactory to create.

Return Value

An instance of the CatalogFactory type.

Example

For an example of using the CatalogFactory refer to the Event Log Viewer utility in the "Leadtools.Medical.Winforms" project.

Remarks

The CatalogFactory will get the type to create from the Leadtools.Medical.DataAccessLayer.Configuration.DataAccessSettings.CatalogFactory in the provided configView.
If no type is defined in the Leadtools.Medical.DataAccessLayer.Configuration.DataAccessSettings.CatalogFactory the default CatalogFactory class will be created.

This allows developers to override the default factory used to create the Leadtools.Medical.DataAccessLayer.Catalog.ICatalog objects by providing their custom factories and take control of the creation method.

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