
## DataConnection class

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



The DataConnection type exposes the following members:

### Constructors
| Constructor | Description |
| :- | :- |
| [DataConnection()](/diagram/python-net/aspose.diagram/dataconnection/__init__/#) | Constructor. |


### Properties
| Property | Description |
| :- | :- |
| [id](/diagram/python-net/aspose.diagram/dataconnection/id) | The ID assigned by Visio for a given connection, unique within the document. |
| [file_name](/diagram/python-net/aspose.diagram/dataconnection/file_name) | The name of the connection file. See Remarks for more information. |
| [connection_string](/diagram/python-net/aspose.diagram/dataconnection/connection_string) | The connection string that defines the parameters necessary to connect to a data source. |
| [command](/diagram/python-net/aspose.diagram/dataconnection/command) | The command string used to query the data source. |
| [timeout](/diagram/python-net/aspose.diagram/dataconnection/timeout) | wait time in minutes while trying to establish a connection before terminating the attempt. |
| [always_use_connection_file](/diagram/python-net/aspose.diagram/dataconnection/always_use_connection_file) | The default value is false. See Remarks for more information. |


### See Also

* module [aspose.diagram](../)
