Delen via


GraphPathSerializationDictionary.ContainsKey Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Determines whether the System.Collections.Generic.IDictionary contains an element that has the specified key.

Namespace:  Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

Syntax

'Declaration
Public Function ContainsKey ( _
    key As String _
) As Boolean
public bool ContainsKey(
    string key
)
public:
virtual bool ContainsKey(
    String^ key
) sealed
abstract ContainsKey : 
        key:string -> bool  
override ContainsKey : 
        key:string -> bool
public final function ContainsKey(
    key : String
) : boolean

Parameters

  • key
    Type: System.String

    The key to locate in the System.Collections.Generic.IDictionary.

Return Value

Type: System.Boolean
True if the System.Collections.Generic.IDictionary contains an element that has the key; otherwise, false.

Implements

IDictionary<TKey, TValue>.ContainsKey(TKey)

Exceptions

Exception Condition
ArgumentNullException

key is null.

.NET Framework Security

See Also

Reference

GraphPathSerializationDictionary Class

Microsoft.VisualStudio.GraphModel Namespace