LEADTOOLS Medical (Leadtools.Medical.DataAccessLayer assembly)
LEAD Technologies, Inc

GetInstance(IDataAccessConfigurationView) Method






The configuration view which holds the information about the data providers to create.
Gets a DataAccessFactory instance to create data providers.
Syntax
public static DataAccessFactory GetInstance( 
   IDataAccessConfigurationView configView
)
'Declaration
 
Public Overloads Shared Function GetInstance( _
   ByVal configView As IDataAccessConfigurationView _
) As DataAccessFactory
'Usage
 
Dim configView As IDataAccessConfigurationView
Dim value As DataAccessFactory
 
value = DataAccessFactory.GetInstance(configView)
public static DataAccessFactory GetInstance( 
   IDataAccessConfigurationView configView
)
 function Leadtools.Medical.DataAccessLayer.DataAccessFactory.GetInstance(IDataAccessConfigurationView)( 
   configView 
)
public:
static DataAccessFactory^ GetInstance( 
   IDataAccessConfigurationView^ configView
) 

Parameters

configView
The configuration view which holds the information about the data providers to create.

Return Value

An instance of the DataAccessFactory class.
Remarks

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

This allows developers to override the default factory used to create the data access providers by providing their custom factories and take control of the creation method.

Example
For an example of using the GetInstance(IDataAccessConfigurationView) method refer to the "Leadtools.Medical.Winforms" project.
Requirements

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

See Also

Reference

DataAccessFactory Class
DataAccessFactory Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 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