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
Public Function TryGetEnumValue(Of T As {Structure, New, IConvertible}) (
key As String,
<OutAttribute> ByRef enumValue As T
) As Boolean
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:
Booleantrue if successful
See Also