
## DataConnection class

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

## Constructors

| Name | Description |
| --- | --- |
| [DataConnection](#constructor) | Constructor. |

## Properties

| Name | Type | Description |
| --- | --- | --- |
| [ID](#id) | long | The ID assigned by Visio for a given connection, unique within the document. |
| [FileName](#filename) | String | The name of the connection file. See Remarks for more information. |
| [ConnectionString](#connectionstring) | String | The connection string that defines the parameters necessary to connect to a data source. |
| [Command](#command) | String | The command string used to query the data source. |
| [Timeout](#timeout) | long | wait time in minutes while trying to establish a connection before terminating the attempt. |
| [AlwaysUseConnectionFile](#alwaysuseconnectionfile) | int | The default value is false. See Remarks for more information. The value of the property is BOOL integer constant. |

### DataConnection() {#constructor}

Constructor.

### DataConnection.ID property {#id}

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

**Type:** long

### DataConnection.FileName property {#filename}

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

**Type:** String

### DataConnection.ConnectionString property {#connectionstring}

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

**Type:** String

### DataConnection.Command property {#command}

The command string used to query the data source.

**Type:** String

### DataConnection.Timeout property {#timeout}

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

**Type:** long

### DataConnection.AlwaysUseConnectionFile property {#alwaysuseconnectionfile}

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

**Type:** int
