DataConnection

DataConnection class

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

Constructors

NameDescription
DataConnectionConstructor.

Properties

NameTypeDescription
IDlongThe ID assigned by Visio for a given connection, unique within the document.
FileNameStringThe name of the connection file. See Remarks for more information.
ConnectionStringStringThe connection string that defines the parameters necessary to connect to a data source.
CommandStringThe command string used to query the data source.
Timeoutlongwait time in minutes while trying to establish a connection before terminating the attempt.
AlwaysUseConnectionFileintThe default value is false. See Remarks for more information. The value of the property is BOOL integer constant.

DataConnection()

Constructor.

DataConnection.ID property

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

Type: long

DataConnection.FileName property

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

Type: String

DataConnection.ConnectionString property

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

Type: String

DataConnection.Command property

The command string used to query the data source.

Type: String

DataConnection.Timeout property

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

Type: long

DataConnection.AlwaysUseConnectionFile property

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

Type: int