FireDAC.Comp.Client.TFDCustomConnection.ConnectionMetaDataIntf

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

property ConnectionMetaDataIntf: IFDPhysConnectionMetadata read GetConnectionMetadataIntf;

C++

__property Firedac::Phys::Intf::_di_IFDPhysConnectionMetadata ConnectionMetaDataIntf = {read=GetConnectionMetadataIntf};

Propriétés

Type Visibilité  Source Unité  Parent
property public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDCustomConnection


Description

Renvoie une interface IFDPhysConnectionMetadata.

La propriété ConnectionMetaDataIntf renvoie une référence à l'interface IADPhysConnectionMetadata. L'interface IFDPhysConnectionMetadata permet la reconnaissance du comportement d'un SGBD.

Exemple

procedure TMainForm.Button2Click(Sender: TObject);
var
  oMetaIntf: IFDPhysConnectionMetadata;
begin
  // get client and server versions
  oMetaIntf := FDConnection1.ConnectionMetaDataIntf;
  try
    ShowMessage(Format('Client version: %.10d; Server version: %.10d',
      [oMetaIntf.ClientVersion, oMetaIntf.ServerVersion]));
  finally
    oMetaIntf:= nil; // always release the Interface before you close the connection
  end;
end;

Voir aussi