InstanceAnnotationCollection.ContainsKey Method

Determines whether the ICollection<T> contains an element with the specified key.

Namespace:  Microsoft.Data.OData
Assembly:  Microsoft.Data.OData (in Microsoft.Data.OData.dll)

Syntax

'Declaration
Public Function ContainsKey ( _
    key As String _
) As Boolean
'Usage
Dim instance As InstanceAnnotationCollection 
Dim key As String 
Dim returnValue As Boolean 

returnValue = instance.ContainsKey(key)
public bool ContainsKey(
    string key
)
public:
bool ContainsKey(
    String^ key
)
member ContainsKey : 
        key:string -> bool
public function ContainsKey(
    key : String
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the ICollection; contains an element with the key; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

key is null.

See Also

Reference

InstanceAnnotationCollection Class

Microsoft.Data.OData Namespace