Share via


NameForm.TryGetName Method (String, NameForm.NameValidator, String%)

Retrieves a value that indicates the name to get.

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

Syntax

'Declaration
Public Shared Function TryGetName ( _
    title As String, _
    validator As NameForm..::..NameValidator, _
    ByRef value As String _
) As Boolean
'Usage
Dim title As String
Dim validator As NameForm..::..NameValidator
Dim value As String
Dim returnValue As Boolean

returnValue = NameForm.TryGetName(title, _
    validator, value)
public static bool TryGetName(
    string title,
    NameForm..::..NameValidator validator,
    ref string value
)
public:
static bool TryGetName(
    String^ title, 
    NameForm..::..NameValidator^ validator, 
    String^% value
)
static member TryGetName : 
        title:string * 
        validator:NameForm..::..NameValidator * 
        value:string byref -> bool 
public static function TryGetName(
    title : String, 
    validator : NameForm..::..NameValidator, 
    value : String
) : boolean

Parameters

  • title
    Type: System.String
    A string that represents the title of the control.
  • value
    Type: System.String%
    The string value that represents the name of the form.

Return Value

Type: System.Boolean
True if the name is validated; otherwise, false.