RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TLocalConnection Class

TLocalConnection represents the connection between a client dataset or XML broker and a provider that resides in the same application.

Pascal
TLocalConnection = class(TCustomRemoteServer, IAppServer, ISupportErrorInfo);
C++
class TLocalConnection : public TCustomRemoteServer, public IAppServer, public ISupportErrorInfo;

Use TLocalConnection to manage the connection between one or more client datasets or XML brokers and the providers that reside in the same application. When working with local providers, it is not necessary to set the RemoteServer property of a client dataset or XML broker to a TLocalConnection component. However, using TLocalConnection lets your application communicate directly with local providers through the AppServer property. This provides access to methods that would otherwise be unavailable, and makes it easier to scale up to a multi-tiered application at a later time. 

TLocalConnection implements the IAppServer interface.

Warning: TLocalConnection only links clients to providers that are instances of TDataSetProvider.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!