Visual Basic (Declaration) | |
---|---|
Public Shared Function TestConnection( _ ByVal providerName As String, _ ByVal userName As String, _ ByVal password As String, _ ByVal connectionString As String, _ ByVal sQLAuthentication As SQLAuthentication, _ ByRef error As String _ ) As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public static bool TestConnection( string providerName, string userName, string password, string connectionString, SQLAuthentication sQLAuthentication, out string error ) |
Parameters
- providerName
- Name of the provider.
- userName
- Name of the user.
- password
- The password.
- connectionString
- The connection string.
- sQLAuthentication
- The s QL authentication.
- error
- The error.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family