Click or drag to resize

PersistentSettingsTryGetEnumValueT Method

Attempt to get the stored value for an enumerated setting using a custom key. Note: the enumerated value ALWAYS gets assigned! Be sure to check for success of this method to prevent erroneous use of the value.

Namespace:  Rhino
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 5.4
Syntax
public bool TryGetEnumValue<T>(
	string key,
	out T enumValue
)
where T : struct, new(), IConvertible

Parameters

key
Type: SystemString

[Missing <param name="key"/> documentation for "M:Rhino.PersistentSettings.TryGetEnumValue``1(System.String,``0@)"]

enumValue
Type: T

[Missing <param name="enumValue"/> documentation for "M:Rhino.PersistentSettings.TryGetEnumValue``1(System.String,``0@)"]

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Rhino.PersistentSettings.TryGetEnumValue``1(System.String,``0@)"]

Return Value

Type: Boolean
true if successful
See Also