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
public override void Test()
public:
virtual void Test() override
abstract Test : unit -> unit  
override Test : unit -> unit
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

Microsoft.VisualStudio.Data.AdoDotNet Namespace