Share via


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

Retrieves a value indicating whether the name is set to the form.

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

Syntax

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

returnValue = NameForm.TryGetName(owner, _
    title, validator, value)
public static bool TryGetName(
    IWin32Window owner,
    string title,
    NameForm..::..NameValidator validator,
    ref string value
)
public:
static bool TryGetName(
    IWin32Window^ owner, 
    String^ title, 
    NameForm..::..NameValidator^ validator, 
    String^% value
)
static member TryGetName : 
        owner:IWin32Window * 
        title:string * 
        validator:NameForm..::..NameValidator * 
        value:string byref -> bool 
public static function TryGetName(
    owner : IWin32Window, 
    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%
    A string that represents the value of the form.

Return Value

Type: System.Boolean
True if the name is set to the form; otherwise, false.