Share via


NameForm.NameValidator Delegate

Represents the class that validates the form.

Namespace:  Microsoft.SqlServer.Management.Controls
Assembly:  Microsoft.SqlServer.Management.Controls (in Microsoft.SqlServer.Management.Controls.dll)

Syntax

'Declaration
Public Delegate Function NameValidator ( _
    value As String, _
    <OutAttribute> ByRef errorMessage As String _
) As Boolean
'Usage
Dim instance As New NameValidator(AddressOf HandlerMethod)
public delegate bool NameValidator(
    string value,
    out string errorMessage
)
public delegate bool NameValidator(
    String^ value, 
    [OutAttribute] String^% errorMessage
)
type NameValidator = 
    delegate of 
        value:string * 
        errorMessage:string byref -> bool
JScript supports the use of delegates, but not the declaration of new ones.

Parameters

  • errorMessage
    Type: System.String%
    A string that represents the text of the error message.

Return Value

Type: System.Boolean
The class that performs the method of validation of the form.