VistaDB 6
VistaDB.Diagnostic Namespace / Errors Class / Add Method
The key of the element to add.
The value of the element to add. The value can be a null reference (Nothing in Visual Basic) for reference types.


In This Topic
    Add Method (Errors)
    In This Topic
    Adds the specified key and value to the dictionary.
    Syntax
    'Declaration
     
    
    <__DynamicallyInvokableAttribute()>
    Public Sub Add( _
       ByVal key As System.Integer, _
       ByVal value As System.String _
    ) 
    'Usage
     
    
    Dim instance As Errors
    Dim key As System.Integer
    Dim value As System.String
     
    instance.Add(key, value)
    [__DynamicallyInvokable()]
    public void Add( 
       System.int key,
       System.string value
    )

    Parameters

    key
    The key of the element to add.
    value
    The value of the element to add. The value can be a null reference (Nothing in Visual Basic) for reference types.
    Exceptions
    ExceptionDescription
    key is a null reference (Nothing in Visual Basic).
    An element with the same key already exists in the System.Collections.Generic.Dictionary`2.
    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