IDAConnectionObjectAccess

Overview

The IDAConnectionObjectAccess interface provides access to the internal connection component and facilitates access to its properties in form of a collection of properties. This interface is useful when you want complete control of the internal object. In order to employ this interface, you need to use ShareMem or FastShareMem.

This example demonstrates how to use this interface:

procedure TMyService.DataAbstractServiceAfterAcquireConnection(
  aSender: TObject; const 
aConnectionName: string;
  const aAcquiredConnection: IDAConnection);
var aConnObjAccess:IDAConnectionObjectAccess;
begin
  
if (Supports(aAcquiredConnection, IDAConnectionObjectAccess, aConnObjAccess)) then
  begin
    //aConnObjAccess.ConnectionProperties['LoginPrompt'];
    
//...................
  end;
end;

Location


Properties


ConnectionObject

Provides access to the internal connection component

property ConnectionObject: TObject read

ConnectionProperties

Provides access to the internal connection component properties.

property ConnectionProperties[aPropertyName: string]: Variant read write