|ProfileGetValue Method (String, String, String, String)|
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 String
public: virtual String^ GetValue( String^ DriverID, String^ Name, String^ SubKey, String^ DefaultValue ) sealed
Name 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 doubleword.
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.