TsgcWSPServer_Dataset › Methods › MetaData
Sends the current dataset field structure to the given client connection.
procedure MetaData(aConnection: TsgcWSConnection);
| Name | Type | Description |
|---|---|---|
aConnection | TsgcWSConnection | Client connection that will receive the metadata frame; use the Connection passed by OnConnect or obtain it from Server.Connections. |
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.
oProtocol.MetaData(Connection);