ToolsOptionsBaseControl<TOptions>.ValidateNumeric Method
Validates the current value of the given numeric control, and shows message if the value is not valid.
Namespace: Microsoft.SqlServer.Management.UI.VSIntegration.Editors
Assembly: SQLEditors (in SQLEditors.dll)
Syntax
'Declaration
Protected Overridable Function ValidateNumeric ( _
numControl As NumericUpDown, _
errMessageToShow As String _
) As Boolean
'Usage
Dim numControl As NumericUpDown
Dim errMessageToShow As String
Dim returnValue As Boolean
returnValue = Me.ValidateNumeric(numControl, _
errMessageToShow)
protected virtual bool ValidateNumeric(
NumericUpDown numControl,
string errMessageToShow
)
protected:
virtual bool ValidateNumeric(
NumericUpDown^ numControl,
String^ errMessageToShow
)
abstract ValidateNumeric :
numControl:NumericUpDown *
errMessageToShow:string -> bool
override ValidateNumeric :
numControl:NumericUpDown *
errMessageToShow:string -> bool
protected function ValidateNumeric(
numControl : NumericUpDown,
errMessageToShow : String
) : boolean
Parameters
- numControl
Type: System.Windows.Forms.NumericUpDown
A NumericUpDown object.
- errMessageToShow
Type: System.String
A string that contains error message.
Return Value
Type: System.Boolean
A Boolean value, True if control value is valid, False otherwise.
See Also
Reference
ToolsOptionsBaseControl<TOptions> Class
Microsoft.SqlServer.Management.UI.VSIntegration.Editors Namespace