Datasnap.DataBkr.TCRemoteDataModule.UnRegisterProvider

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure UnRegisterProvider(Value: TCustomProvider); virtual;

C++

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

Properties

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

Description

Removes a provider from the list returned by AS_GetProviderNames.

Call UnRegisterProvider to remove a provider from the remote data module's list of available providers. Pass a reference to the provider that should be removed as the Value parameter. When a provider is not registered, it is not returned by the CRDMGetProviderNames method, which can be accessed through the TRemoteDataModule interface.

To temporarily disable a provider, use the provider's Exported property. Unexported providers are listed by CRDMGetProviderNames but cannot be accessed through any TRemoteDataModule method calls.

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