PersistentSettings.GetValidator(T) Method (String)

PersistentSettingsGetValidatorT Method (String)

Provides a way to find a ready-to-use validator for the PersistentSetting class for the given the key, or obtaining null.

Namespace:  Rhino
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public EventHandler<PersistentSettingsEventArgs<T>> GetValidator<T>(
	string key
)
Public Function GetValidator(Of T) ( 
	key As String
) As EventHandler(Of PersistentSettingsEventArgs(Of T))

Parameters

key
Type: SystemString
The name of the setting key.

Type Parameters

T
The type that the validator acts upon.

Return Value

Type: EventHandlerPersistentSettingsEventArgsT
A valid validator, or null if no validator was found.
Exceptions
ExceptionCondition
InvalidCastExceptionIf type parameter T is not the right specialization for PersistentSettingsEventArgsT.
Version Information

Rhino for Windows

Supported in: 6.8
See Also