Click or drag to resize

ConfigFileGetValue Method

Returns the current value for the specified section and key. If either the section or the key do not exist, the method returns the fallback default value. If default is not specified or set to null, an error is also raised.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Object GetValue(
	string section,
	string key,
	Object default = null
)

Parameters

section
Type: SystemString

[Missing <param name="section"/> documentation for "M:Godot.ConfigFile.GetValue(System.String,System.String,System.Object)"]

key
Type: SystemString

[Missing <param name="key"/> documentation for "M:Godot.ConfigFile.GetValue(System.String,System.String,System.Object)"]

default (Optional)
Type: SystemObject

[Missing <param name="default"/> documentation for "M:Godot.ConfigFile.GetValue(System.String,System.String,System.Object)"]

Return Value

Type: Object

[Missing <returns> documentation for "M:Godot.ConfigFile.GetValue(System.String,System.String,System.Object)"]

See Also