RhinoCommon API
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)
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: EventHandlerPersistentSettingsEventArgsTA valid validator, or null if no validator was found.
| Exception | Condition |
|---|---|
| InvalidCastException | If type parameter T is not the right specialization for PersistentSettingsEventArgsT. |