Visual Basic (Declaration) | |
---|---|
Overloads Function Value( _ ByVal key As String, _ ByVal defaultValue As Object _ ) As Object |
C# | |
---|---|
object Value( string key, object defaultValue ) |
C++/CLI | |
---|---|
Object^ Value( String^ key, Object^ defaultValue ) |
Parameters
- key
- The key name.
- defaultValue
- The value to return if there is no value in state for the specified key.
Return Value
The value in state if it exists; otherwise the defaultValue.Target Platforms: Windows 11 Professional or Enterprise; Windows 10 Professional, Enterprise, or Education (64-bit)