
## DataConnection class

Abstracts communication between one or more DataRecordset elements and a non-XML data source.

```js
new DataConnection()
```

Constructor.

## Methods

| Name | Description |
| --- | --- |
| [getAlwaysUseConnectionFile()](#getalwaysuseconnectionfile) | The default value is false. See Remarks for more information. The value of the property is BOOL integer constant. |
| [getCommand()](#getcommand) | The command string used to query the data source. |
| [getConnectionString()](#getconnectionstring) | The connection string that defines the parameters necessary to connect to a data source. |
| [getFileName()](#getfilename) | The name of the connection file. See Remarks for more information. |
| [getID()](#getid) | The ID assigned by Visio for a given connection, unique within the document. |
| [getTimeout()](#gettimeout) | wait time in minutes while trying to establish a connection before terminating the attempt. |
| [setAlwaysUseConnectionFile()](#setalwaysuseconnectionfile) | The default value is false. See Remarks for more information. The value of the property is BOOL integer constant. |
| [setCommand()](#setcommand) | The command string used to query the data source. |
| [setConnectionString()](#setconnectionstring) | The connection string that defines the parameters necessary to connect to a data source. |
| [setFileName()](#setfilename) | The name of the connection file. See Remarks for more information. |
| [setID()](#setid) | The ID assigned by Visio for a given connection, unique within the document. |
| [setTimeout()](#settimeout) | wait time in minutes while trying to establish a connection before terminating the attempt. |

### getAlwaysUseConnectionFile() {#getalwaysuseconnectionfile}

The default value is false. See Remarks for more information. The value of the property is BOOL integer constant.

### getCommand() {#getcommand}

The command string used to query the data source.

### getConnectionString() {#getconnectionstring}

The connection string that defines the parameters necessary to connect to a data source.

### getFileName() {#getfilename}

The name of the connection file. See Remarks for more information.

### getID() {#getid}

The ID assigned by Visio for a given connection, unique within the document.

### getTimeout() {#gettimeout}

wait time in minutes while trying to establish a connection before terminating the attempt.

### setAlwaysUseConnectionFile() {#setalwaysuseconnectionfile}

The default value is false. See Remarks for more information. The value of the property is BOOL integer constant.

### setCommand() {#setcommand}

The command string used to query the data source.

### setConnectionString() {#setconnectionstring}

The connection string that defines the parameters necessary to connect to a data source.

### setFileName() {#setfilename}

The name of the connection file. See Remarks for more information.

### setID() {#setid}

The ID assigned by Visio for a given connection, unique within the document.

### setTimeout() {#settimeout}

wait time in minutes while trying to establish a connection before terminating the attempt.
