Back to Devexpress

TdxBackendDataConnectionCollection.Add(TdxBackendCustomDataConnectionClass) Method

vcl-dxbackend-dot-tdxbackenddataconnectioncollection-dot-add-x28-dxbackend-dot-tdxbackendcustomdataconnectionclass-x29.md

latest1.9 KB
Original Source

TdxBackendDataConnectionCollection.Add(TdxBackendCustomDataConnectionClass) Method

Creates a data connection of the required type and ads the connection to the collection.

Declaration

delphi
function Add(AItemClass: TdxBackendCustomDataConnectionClass): TdxBackendCustomDataConnection;

Parameters

NameTypeDescription
AItemClassTdxBackendCustomDataConnectionClass

A reference to the target data connection class (a terminal TdxBackendCustomDataConnection descendant).

|

Returns

TypeDescription
TdxBackendCustomDataConnection

The created data connection component (AItemClass specifies the component type).

Tip

Cast the returned object to the corresponding terminal TdxBackendCustomDataConnection class descendnat to access all public API members.

|

Remarks

Call the Add function to create any supported backend data connection. All created data connection components are accessible through the Items property.

Delete Data Connections

You can call Delete and Clear procedures to delete data connection components stored in the collection.

See Also

TcxComponentCollection.Count Property

TdxBackendDataConnectionCollection Class

TdxBackendDataConnectionCollection Members

dxBackend Unit