Determines whether the IDictionary contains an element with the specified key.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Private Function Contains ( _
key As Object _
) As Boolean Implements IDictionary.Contains
'Usage
Dim instance As DataConnectionProperties
Dim key As Object
Dim returnValue As Boolean
returnValue = CType(instance, IDictionary).Contains(key)
bool IDictionary.Contains(
Object key
)
private:
virtual bool Contains(
Object^ key
) sealed = IDictionary::Contains
JScript does not support explicit interface implementations.
Parameters
key
Type: System.ObjectThe key on which to locate an element.
Return Value
Type: System.Boolean
Returns true if the IDictionary contains an element with the specified key; otherwise returns false.
Implements
Remarks
This method provides an implementation of the Contains method. For more information see the Contains method in the .NET Framework class library.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DataConnectionProperties Class