TdxCloudStorage.Provider Property
Provides access to the cloud storage’s active data provider.
Declaration
property Provider: TdxCloudStorageProvider read; write;
Property Value
Type |
---|
TdxCloudStorageProvider |
Remarks
A valid online data provider with a configured authorization agent is required to connect the cloud storage component to an online file storage service, obtain the resource hierarchy, and manage the stored files. Assign a registered provider class by its name or class reference via the ProviderClassName or ProviderClass property to create the corresponding data provider for the cloud storage prior to an attempt to access the Provider property. Then, you can use it to customize the data provider’s settings, connect to the supported online account and synchronize the file data. Cast the Provider property value to the corresponding TdxCloudStorageProvider class descendant to access provider-specific settings. To identify the actual data provider’s type, call the Provider.ClassName or Provider.ClassType function.
Alternatively, you can associate the cloud storage with an existing data provider by assigning it to the Provider property.
Note
Every time you change the ProviderClass or ProviderClassName property value, the cloud storage component discards the current data provider settings and automatically recreates the provider according to the new specified class. The OnChanged event occurs every time the Provider property value changes.
The default Provider property value is nil.