Set a value

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

Syntax

C#
public void SetValue(
	string Name,
	string Value,
	string SubKeyName
)
Visual Basic
Public Sub SetValue ( _
	Name As String, _
	Value As String, _
	SubKeyName As String _
)
Visual C++
public:
void SetValue(
	String^ Name, 
	String^ Value, 
	String^ SubKeyName
)

Parameters

Name
Type: System..::..String
Name of the value to set
Value
Type: System..::..String
Value to be set
SubKeyName
Type: System..::..String
"Subkey continaining the value

Remarks

Changing a value with this method does NOT change the underlying profile store, only the value in this class. In order to persist the new value, the class should be written back to the profile store through Profile.SetProfile.

See Also