public string GetValue(
string DriverID,
string Name,
string SubKey,
string DefaultValue
)Public Function GetValue (
DriverID As String,
Name As String,
SubKey As String,
DefaultValue As String
) As Stringpublic:
virtual String^ GetValue(
String^ DriverID,
String^ Name,
String^ SubKey,
String^ DefaultValue
) sealedName may be an empty string for the unnamed value. The unnamed value is also known as the "default" value for a registry key.
Does not provide access to other registry data types such as binary and double-word.
If a default value is supplied and the value is not already present in the profile store, the default value will be set in the profile store and then returned as the value of the DriverID/SubKey/Name. If the default value is set to null (C#) or Nothing (VB) then no value will be set in the profile and an empty string will be returned as the value of the DriverID/SubKey/Name.
| InvalidValueException | Thrown if DriverID is an empty string. |
| DriverNotRegisteredException | Thrown if the driver is not registered, |