IProfileGetValue(String, String) Method

Gets the value associated with a key. Returns the defaultValue if that key does not exist. This will not store that key / value pair in the profile.

Definition

Namespace: ASCOM.Common.Interfaces
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 4.0.0+77e18c564bf9ecdb0ef30166e894390d1b7d077c
C#
string GetValue(
	string key,
	string defaultValue
)

Parameters

key  String
The key to lookup
defaultValue  String
The value to return if the key does not exist

Return Value

String
The stored value.

Version Information

Supported in: .NET Standard 2.0, .NET 8 .NET 9. .NET 10

See Also