DataRecordSet Class
Stores, formats, refreshes, and exposes data queried from a database in Microsoft Visio.
Inheritance Hierarchy
SystemObject
  Aspose.DiagramDataRecordSet

Namespace: Aspose.Diagram
Assembly: Aspose.Diagram (in Aspose.Diagram.dll) Version: 20.2.0.0 (20.2)
Syntax
public class DataRecordSet

The DataRecordSet type exposes the following members.

Constructors
  NameDescription
Public methodDataRecordSet
Constructor.
Properties
  NameDescription
Public propertyADOData
Contains XML that conforms to the ADO classic XML schema for an ADO recordset and that describes the data in the data recordset.
Public propertyAutoLinkComparison
Defines a rule that compares a column in the parent DataRecordset element with a shape data item from the last successful automatic linking action performed in the user interface.
Public propertyChecksum
A checksum value, generated by Visio, and based on data-recordset properties. Set this attirbute to 0; Visio recalculates this value at runtime.
Public propertyCommand
The command string used to query data from the data source.
Public propertyConnectionID
The connection ID for the associated DataConnection object. Does not exist for XML data sources.
Public propertyDataColumns
Contains all the DataColumn elements in a data recordset.
Public propertyID
The data recordset ID, unique within the document.
Public propertyName
The display (or "friendly") name of the data recordset.
Public propertyNextRowID
The next available Visio row ID.
Public propertyOptions
Options to apply to the data recordset. Possible values can be any combination of one or more of those shown in the following table.
Public propertyPrimaryKeys
Identifies one or more primary-key columns in the data recordset.
Public propertyRefreshConflicts
Indicates a row in the data recordset linked to a shape that is in conflict after the data recordset is refreshed. RowID - Indicates a row in the data recordset linked to a shape that is in conflict after the data recordset is refreshed. ShapeID - Shape ID of the shape involved in the conflict. PageID - Page ID of the shape involved in the conflict.
Public propertyRefreshInterval
How often (in minutes) Visio refreshes the data recordset automatically. This value must be 1 or larger.
Public propertyRefreshNoReconciliationUI
Whether the data-reconciliation user interface should be disabled. True (1) to disable the user interface (UI). False (0) to enable the UI.
Public propertyRefreshOverwriteAll
Whether to overwrite user changes to shape data items in shapes linked to data when the data recordset is refreshed.
Public propertyReplaceLinks
Defines how shape-data links are treated when shapes are copied or cut. 1 to replace existing links in the target shape. 0 to maintain existing links in the target shape. If this attribute is absent, Visio asks the user whether to replace links on copy or cut.
Public propertyRowMaps
Maps a data-recordset row to a shape. RowID - Row ID of the row, unique within the data recordset. ShapeID - Shape ID of the shape linked to data in the data-recordset row identified by RowID. PageID - Page ID of the shape linked to data in the data-recordset row identified by RowID.
Public propertyRowOrder
Whether to use the order of the rows in the data recordset as the primary key. True (1) if row IDs are determined by row order. False (0) if row IDs are determined by values in the primary key column(s) of the data recordset.
Public propertyTimeRefreshed
The date and time the data recordset was last refreshed.
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRefresh
Executes the query string associated with the connected (non-XML-based) DataRecordset and updates linked shapes with new data from the data source returned by the query.
Public methodRefresh(DataConnectionType)
Executes the query string associated with the connected (non-XML-based) DataRecordset and updates linked shapes with new data from the data source returned by the query.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also