Share via


IVsDataConnection.GetLockedProviderObject Method

Retrieves the underlying locked data provider that supports the current data connection.

Namespace:  Microsoft.VisualStudio.Data.Services
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'Declaration
Function GetLockedProviderObject As Object
'Usage
Dim instance As IVsDataConnection 
Dim returnValue As Object 

returnValue = instance.GetLockedProviderObject()
Object GetLockedProviderObject()
Object^ GetLockedProviderObject()
function GetLockedProviderObject() : Object

Return Value

Type: System.Object
The underlying locked data provider object for the current data connection.

Remarks

A client can use this method when they are knowledgeable about the underlying data provider and want to make calls directly to its API, either for performance reasons or because there is functionality that DDEX does not natively support.

An example of a provider object would be an IDbConnection instance for an ADO.NET provider, or an XmlDocument for an XML file.

.NET Framework Security

See Also

Reference

IVsDataConnection Interface

IVsDataConnection Members

GetLockedProviderObject Overload

Microsoft.VisualStudio.Data.Services Namespace