| Visual Basic (Declaration) | |
|---|---|
Public Sub Connect() | |
| C# | |
|---|---|
public void Connect() | |
| Exception | Description |
|---|---|
| System.ObjectDisposedException | The DataSourceBase is disposed. |
| DataSourceException | The DataSourceBase is already connected. |
| DataSourceConfigurationException | The DataSourceBase is not initialized. |
This method can be called only if a Data Source is disconnected; otherwise, the exception will be thrown.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2