Datasnap.DataBkr.TCRemoteDataModule.RegisterProvider

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RegisterProvider(Value: TCustomProvider); virtual;

C++

virtual void __fastcall RegisterProvider(Datasnap::Provider::TCustomProvider* Value);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Datasnap.DataBkr.pas
Datasnap.DataBkr.hpp
Datasnap.DataBkr TCRemoteDataModule

Description

Adds a provider to the list returned by CRDMGetProviderNames.

Call RegisterProvider to make a provider available through a remote data module's TRemoteDataModule interface. Pass a reference to the provider as the Value parameter. Once a provider is registered, its availability to client applications can be turned on or off using its Exported property. However, even the names of unexported providers are returned by CRDMGetProviderNames.

Do not call RegisterProvider for providers that are added at design time or when the remote data module is assigned as an Owner in the provider's constructor. These are registered automatically.

Before a registered provider is destroyed, it must be unregistered using the UnRegisterProvider method. Providers that have the remote data module as an Owner are unregistered automatically from their destructors.

See Also