ContainsKey Method
See Also 
SourceCode Namespace > ConnectionStringBuilderBase Class : ContainsKey Method



keyword
The key to locate in the System.Data.Common.DbConnectionStringBuilder.

Glossary Item Box

Determines whether the System.Data.Common.DbConnectionStringBuilder contains a specific key.

Syntax

Visual Basic (Declaration) 
Public Overrides Function ContainsKey( _
   ByVal keyword As String _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ConnectionStringBuilderBase
Dim keyword As String
Dim value As Boolean
 
value = instance.ContainsKey(keyword)
C# 
public override bool ContainsKey( 
   string keyword
)
C++/CLI 
public:
bool ContainsKey( 
   String^ keyword
) override 

Parameters

keyword
The key to locate in the System.Data.Common.DbConnectionStringBuilder.

Return Value

true if the System.Data.Common.DbConnectionStringBuilder contains an entry with the specified key; otherwise false.

Exceptions

ExceptionDescription
System.ArgumentNullExceptionkeyword is a null reference (Nothing in Visual Basic).

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also