SettingsProviderInitialize Method

Initializes the ASCOM Settings Provider.

Definition

Namespace: ASCOM
Assembly: ASCOM.SettingsProvider (in ASCOM.SettingsProvider.dll) Version: 7.1.3+4851.c5da65c2b
C#
public virtual void Initialize(
	string name,
	NameValueCollection config
)

Parameters

name  String
Ignored.
config  NameValueCollection
Not used.

Remarks

This method is called by ApplicationSettingsBase to initialize the settings provider. Normally, this will set the provider's ApplicationName property to the assembly name of the application. This is later used to determine the storage location of each of the settings. However, for ASCOM purposes, we can't use the application name and we need to key off the ASCOM DeviceID of the driver, so in ASCOM.SettingsProvider, the application name is set but never used.

See Also