DbConnectionStringBuilder.IDictionary.Contains(Object) Method

Definition

确定 IDictionary 对象是否包含具有指定键的元素。Determines whether the IDictionary object contains an element with the specified key.

 virtual bool System.Collections.IDictionary.Contains(System::Object ^ keyword) = System::Collections::IDictionary::Contains;
bool IDictionary.Contains (object keyword);
abstract member System.Collections.IDictionary.Contains : obj -> bool
override this.System.Collections.IDictionary.Contains : obj -> bool
Function Contains (keyword As Object) As Boolean Implements IDictionary.Contains

Parameters

keyword
Object

要在 IDictionary 对象中查找的键。The key to locate in the IDictionary object.

Returns

Boolean

如果 true 包含具有键的元素,则为 IDictionary;否则为 falsetrue if the IDictionary contains an element with the key; otherwise, false.

Implements

Remarks

此成员是显式接口成员实现。This member is an explicit interface member implementation. 它只能在 DbConnectionStringBuilder 实例被强制转换为 IDictionary 接口时使用。It can be used only when the DbConnectionStringBuilder instance is cast to an IDictionary interface.

有关详细信息,请参阅 ContainsFor more information, see Contains.

Applies to

See also