The SettingsProvider type exposes the following members.

Constructors

  NameDescription
Public methodSettingsProvider()()()()
Initializes a new instance of the SettingsProvider class with the default profile provider Profile.
Public methodSettingsProvider(IProfile)
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.

Methods

  NameDescription
Public methodGetPropertyValues
Retrieves a collection of settings values from the underlying ASCOM Profile store.
(Overrides SettingsProvider..::..GetPropertyValues(SettingsContext, SettingsPropertyCollection).)
Public methodInitialize
Initializes the ASCOM Settings Provider.
(Overrides ProviderBase..::..Initialize(String, NameValueCollection).)
Public methodSetPropertyValues
Persists a collection of settings values to the underlying ASCOM Profile store.
(Overrides SettingsProvider..::..SetPropertyValues(SettingsContext, SettingsPropertyValueCollection).)

Properties

  NameDescription
Public propertyApplicationName
Gets the name of the driver or application for which settings are being managed. This value is set during provider initialization and cannot be changed thereafter.
(Overrides SettingsProvider..::..ApplicationName.)
Public propertyDescription
Gets the provider's friendly description.
(Overrides ProviderBase..::..Description.)
Public propertyName
Returns the provider's friendly name used during configuration.
(Overrides ProviderBase..::..Name.)

See Also