FireDAC.Comp.Client.TFDCustomConnection.ConnectionMetaDataIntf

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

property ConnectionMetaDataIntf: IFDPhysConnectionMetadata read GetConnectionMetadataIntf;

C++

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

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
property public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDCustomConnection


Beschreibung

Gibt ein IFDPhysConnectionMetadata-Interface zurück.

Die Eigenschaft ConnectionMetaDataIntf gibt eine Referenz auf das IADPhysConnectionMetadata-Interface zurück. Das IFDPhysConnectionMetadata-Interface ermöglicht das Erkennen eines DBMS-Verhaltens.

Beispiel

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;

Siehe auch