ContainsKey method

Determines whether the SAConnectionStringBuilder object contains a specific keyword.

Syntax
Visual Basic

Public Overrides Function ContainsKey( _
   ByVal keyword As String _
) As Boolean
C#

public override bool ContainsKey(
   string  keyword
);
Parameters
  • keyword   The keyword to locate in the SAConnectionStringBuilder.

Return value

True if the value associated with keyword has been set; otherwise, false.

Example

The following statement determines whether the SAConnectionStringBuilder object contains the UserID keyword.

connectString.ContainsKey("UserID")
See also