VistaDB 6
VistaDB.Provider Namespace / VistaDBConnectionStringBuilder Class / TryGetValue Method
The key of the item to retrieve.The key of the item to retrieve.
The value corresponding to the keyword.The value corresponding to the key.


In This Topic
    TryGetValue Method (VistaDBConnectionStringBuilder)
    In This Topic
    Retrieves a value corresponding to the supplied key from this System.Data.Common.DbConnectionStringBuilder. Retrieves a value corresponding to the supplied key from this VistaDBConnectionStringBuilder.
    Syntax
    'Declaration
     
    
    Public Overrides NotOverridable Function TryGetValue( _
       ByVal keyword As System.String, _
       ByRef value As System.Object _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As VistaDBConnectionStringBuilder
    Dim keyword As System.String
    Dim value As System.Object
    Dim value As System.Boolean
     
    value = instance.TryGetValue(keyword, value)
    public override System.bool TryGetValue( 
       System.string keyword,
       out System.object value
    )

    Parameters

    keyword
    The key of the item to retrieve.The key of the item to retrieve.
    value
    The value corresponding to the keyword.The value corresponding to the key.

    Return Value

    true if keyword was found within the connection string, false otherwise.true if keyword was found within the connection string, false otherwise.
    Exceptions
    ExceptionDescription
    keyword contains a null value (Nothing in Visual Basic).
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also