Soap.SOAPDm.TSoapDataModule.RegisterProvider

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RegisterProvider(Value: TCustomProvider);

C++

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

Properties

Type Visibility Source Unit Parent
procedure
function
public
Soap.SOAPDm.pas
Soap.SOAPDm.hpp
Soap.SOAPDm TSoapDataModule

Description

Adds a provider to the list returned by AS_GetProviderNames.

Call RegisterProvider to make a provider available through the SOAP data module's IAppServer 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.

There is no need to call RegisterProvider for providers that are added at design time or when the SOAP 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 SOAP data module as an Owner are unregistered automatically from their destructors.

See Also