FireDAC.Comp.Client.TFDCustomConnection.ConnectionMetaDataIntf

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

property ConnectionMetaDataIntf: IFDPhysConnectionMetadata read GetConnectionMetadataIntf;

C++

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

プロパティ

種類 可視性 ソース ユニット
property public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDCustomConnection

説明

IFDPhysConnectionMetadata インターフェイスを返します。


ConnectionMetaDataIntf プロパティは、IADPhysConnectionMetadata インターフェイスの参照を返します。IFDPhysConnectionMetadata インターフェイスでは、DBMS の動作を認識できます。

 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;

関連項目