Initializes a new instance of the SettingsProvider class with the supplied Profile Provider. This is useful for injecting a mock profile object during unit testing.

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

Syntax

C#
public SettingsProvider(
	IProfile profileProvider
)
Visual Basic
Public Sub New ( _
	profileProvider As IProfile _
)
Visual C++
public:
SettingsProvider(
	IProfile^ profileProvider
)

Parameters

profileProvider
Type: ASCOM.Utilities.Interfaces..::..IProfile
The IProfile to be used.

See Also