DataRecordsets Object Members
Visio Automation Reference |
The collection of DataRecordset objects associated with a Document object.
Methods
Name | Description | |
---|---|---|
Add | Adds a DataRecordset object to the DataRecordsets collection by connecting to and retrieving data from an OLEDB or ODBC data source. | |
AddFromConnectionFile | Adds a DataRecordset object to the DataRecordsets collection by using the connection and query information contained in an Office Data Connection (ODC) file to connect to and retrieve data from an OLEDB or ODBC data source. | |
AddFromXML | Adds a DataRecordset object to the DataRecordsets collection, and fills the resulting data recordset with data supplied in the form of an XML string. | |
GetLastDataError | Gets the Active X Data Objects (ADO) error code, ADO description, and data recordset ID associated with an error that results from adding a new data recordset or refreshing the data in an existing one. |
Properties
Name | Description | |
---|---|---|
Application | Returns the instance of Microsoft Office Visio associated with the DataRecordsets collection. Read-only. | |
Count | Returns the number of DataRecordset objects in the DataRecordsets collection. Read-only. | |
Document | Gets the Document object that contains the DataRecordsets collection. Read-only. | |
EventList | Returns the EventList collection of the DataRecordsets collection. Read-only. | |
Item | Returns the DataRecordset object at the specified index position in the DataRecordsets collection. Read-only. | |
ItemFromID | Returns a DataRecordset object from the DataRecordsets collection by using the unique ID of the object. Read-only. | |
ObjectType | Returns visObjTypeDataRecordsets, the type of a DataRecordsets object. Read-only. | |
Stat | Returns status information for an object. Read-only. |
Events
Name | Description | |
---|---|---|
BeforeDataRecordsetDelete | Occurs before a DataRecordset object is deleted from the DataRecordsets collection. . | |
DataRecordsetAdded | Occurs when a DataRecordset object is added to a DataRecordsets collection. | |
DataRecordsetChanged | Occurs when a data recordset changes as a result of being refreshed.. |