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
- key
Type: System.String
The key to locate in the ICollection<T>.
Return Value
Type: System.Boolean
true if the ICollection; contains an element with the key; otherwise, false.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | key is null. |