Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
AdoDotNetConnectionProperties Class