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

'宣言
Public Overrides Sub Test
'使用
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.

注意

Any exceptions that occur indicate that the test failed.

Permissions

See Also

Reference

AdoDotNetConnectionProperties Class

AdoDotNetConnectionProperties Members

Microsoft.VisualStudio.Data.AdoDotNet Namespace