VistaDB 6
VistaDB.Provider Namespace / VistaDBConnectionStringBuilder Class / Item Property
The key of the item to get or set.The key of the item to get or set.


In This Topic
    Item Property (VistaDBConnectionStringBuilder)
    In This Topic
    Gets or sets the value associated with the specified key. Gets or sets the value associated with the specified key.
    Syntax
    'Declaration
     
    
    Public Overrides NotOverridable Default Property Item( _
       ByVal keyword As System.String _
    ) As System.Object
    'Usage
     
    
    Dim instance As VistaDBConnectionStringBuilder
    Dim keyword As System.String
    Dim value As System.Object
     
    instance.Item(keyword) = value
     
    value = instance.Item(keyword)
    public override System.object this[ 
       System.string keyword
    ]; {get; set;}

    Parameters

    keyword
    The key of the item to get or set.The key of the item to get or set.

    Property Value

    The value associated with the specified key. If the specified key is not found, trying to get it returns a null reference (Nothing in Visual Basic), and trying to set it creates a new element using the specified key. Passing a null (Nothing in Visual Basic) key throws an System.ArgumentNullException. Assigning a null value removes the key/value pair.The value associated with the specified key.
    Exceptions
    ExceptionDescription
    keyword is a null reference (Nothing in Visual Basic).
    The property is set, and the System.Data.Common.DbConnectionStringBuilder is read-only. -or- The property is set, keyword does not exist in the collection, and the System.Data.Common.DbConnectionStringBuilder has a fixed size.
    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