Share via


NameForm.TryGetName Method (String, String%)

Verifies whether the element has a name and returns the name if it exists.

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, _
    ByRef value As String _
) As Boolean
'Usage
Dim title As String
Dim value As String
Dim returnValue As Boolean

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

Parameters

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

Return Value

Type: System.Boolean
True if the value has a name; otherwise, false.