TsgcWSPServer_DatasetMethods › MetaData

MetaData Method

Sends the current dataset field structure to the given client connection.

Syntax

procedure MetaData(aConnection: TsgcWSConnection);

Parameters

NameTypeDescription
aConnectionTsgcWSConnectionClient connection that will receive the metadata frame; use the Connection passed by OnConnect or obtain it from Server.Connections.

Remarks

Ships only the field definitions (names, types, sizes, keys) of the currently open DataSet so the client can create an in-memory dataset with a matching structure before any rows arrive. The method does nothing when DataSet is not active. Call it before Synchronize when you need to drive the handshake manually; AutoSynchronize calls it for you on every new connection.

Example

oProtocol.MetaData(Connection);

Back to Methods