PropertyBag.IDictionary.Contains(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
For a description of this member, see the Contains(Object) method.
virtual bool System.Collections.IDictionary.Contains(System::Object ^ key) = System::Collections::IDictionary::Contains;
bool IDictionary.Contains (object key);
Function Contains (key As Object) As Boolean Implements IDictionary.Contains
Parameters
- key
- Object
The key of the item to check for.
Returns
true
if the collection contains an element that has the specified key; otherwise, false
.
Implements
Exceptions
key
is not an integer.
Remarks
This member is an explicit interface member implementation. It can be used only when the PropertyBag object is cast to an IDictionary interface.
Because property bag keys must be integers, the key
parameter must be an integer.