VistaDB 6
VistaDB.Diagnostic Namespace / Errors Class / ContainsKey Method
The key to locate in the System.Collections.Generic.Dictionary`2.


In This Topic
    ContainsKey Method (Errors)
    In This Topic
    Determines whether the System.Collections.Generic.Dictionary`2 contains the specified key.
    Syntax
    'Declaration
     
    
    <__DynamicallyInvokableAttribute()>
    Public Function ContainsKey( _
       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.ContainsKey(key)
    [__DynamicallyInvokable()]
    public System.bool ContainsKey( 
       System.int key
    )

    Parameters

    key
    The key to locate in the System.Collections.Generic.Dictionary`2.

    Return Value

    true if the System.Collections.Generic.Dictionary`2 contains an element with the specified key; otherwise, false.
    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