Initializes the ASCOM Settings Provider.

Namespace: ASCOM
Assembly: ASCOM.SettingsProvider (in ASCOM.SettingsProvider.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
public override void Initialize(
	string name,
	NameValueCollection config
)
Visual Basic
Public Overrides Sub Initialize ( _
	name As String, _
	config As NameValueCollection _
)
Visual C++
public:
virtual void Initialize(
	String^ name, 
	NameValueCollection^ config
) override

Parameters

name
Type: System..::..String
Ignored.
config
Type: System.Collections.Specialized..::..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