SettingsProviderInitialize Method
Initializes the ASCOM Settings Provider.
Namespace: ASCOMAssembly: ASCOM.SettingsProvider (in ASCOM.SettingsProvider.dll) Version: 7.1.3+4851.c5da65c2b
public virtual void Initialize(
string name,
NameValueCollection config
)
Public Overridable Sub Initialize (
name As String,
config As NameValueCollection
)
public:
virtual void Initialize(
String^ name,
NameValueCollection^ config
)
Parameters
- name String
- Ignored.
- config NameValueCollection
- Not used.
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.