Share via


AdoDotNetConnectionProperties.Test Method

Tests that the current set of connection properties will successfully open a connection.

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

Syntax

'Declaration
Public Overrides Sub Test
'Usage
Dim instance As AdoDotNetConnectionProperties

instance.Test()
public override void Test()
public:
virtual void Test() override
public override function Test()

Implements

IDataConnectionProperties.Test()

Remarks

Overrides the Test method. The behavior of the override is to call the ToTestString method, create the provider's DbConnection object, set its connection string, then try to open it.

Note

Any exceptions that occur indicate that the test failed.

.NET Framework Security

See Also

Reference

AdoDotNetConnectionProperties Class

AdoDotNetConnectionProperties Members

Microsoft.VisualStudio.Data.AdoDotNet Namespace