RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLBroker.SetProvider Method

Associates the XML broker with a provider in the same process space.

Pascal
procedure SetProvider(Provider: TComponent);
C++
__fastcall SetProvider(TComponent * Provider);

Use SetProvider to specify a local provider component that provides data to and applies updates from the XML broker. The XML broker communicates with this provider using the IAppServer interface specified by the AppServer property. 

Do not use SetProvider for remote providers on an application server. If the provider is not in the same process space as the XML broker, use the ProviderName property. 

The Provider parameter must be a descendant of TCustomProvider. Otherwise, SetProvider raises an exception. 

 

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