RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCRemoteDataModule.UnRegisterProvider Method

Removes a provider from the list returned by AS_GetProviderNames.

Pascal
procedure UnRegisterProvider(Value: TCustomProvider); virtual;
C++
virtual __fastcall UnRegisterProvider(TCustomProvider Value);

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 IAppServer interface. 

To temporarily disable a provider, use the provider's Exported property. Unexported providers are listed by CRDMGetProviderNames but can't be accessed through any IAppServer 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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!