VistaDB 6
VistaDB.Diagnostic Namespace / Errors Class / Remove Method
The key of the element to remove.


In This Topic
    Remove Method (Errors)
    In This Topic
    Removes the value with the specified key from the System.Collections.Generic.Dictionary`2.
    Syntax
    'Declaration
     
    
    <__DynamicallyInvokableAttribute()>
    Public Function Remove( _
       ByVal key As System.Integer _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As Errors
    Dim key As System.Integer
    Dim value As System.Boolean
     
    value = instance.Remove(key)
    [__DynamicallyInvokable()]
    public System.bool Remove( 
       System.int key
    )

    Parameters

    key
    The key of the element to remove.

    Return Value

    true if the element is successfully found and removed; otherwise, false. This method returns false if key is not found in the System.Collections.Generic.Dictionary`2.
    Exceptions
    ExceptionDescription
    key is a null reference (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