DbParameterCollection.Contains 方法

定义

指示集合中是否存在具有指定属性的 DbParameterIndicates whether a DbParameter with the specified property exists in the collection.

重载

Contains(Object)

指示集合中是否包含具有指定 ValueDbParameterIndicates whether a DbParameter with the specified Value is contained in the collection.

Contains(String)

指示具有指定名称的 DbParameter 是否存在于集合中。Indicates whether a DbParameter with the specified name exists in the collection.

Contains(Object)

指示集合中是否包含具有指定 ValueDbParameterIndicates whether a DbParameter with the specified Value is contained in the collection.

public:
 abstract bool Contains(System::Object ^ value);
public abstract bool Contains (object value);
abstract member Contains : obj -> bool
Public MustOverride Function Contains (value As Object) As Boolean

参数

value
Object

要在集合中查找的 DbParameterValueThe Value of the DbParameter to look for in the collection.

返回

Boolean

如果 DbParameter 位于集合中,则为 true;否则为 falsetrue if the DbParameter is in the collection; otherwise false.

实现

适用于

Contains(String)

指示具有指定名称的 DbParameter 是否存在于集合中。Indicates whether a DbParameter with the specified name exists in the collection.

public:
 abstract bool Contains(System::String ^ value);
public abstract bool Contains (string value);
abstract member Contains : string -> bool
Public MustOverride Function Contains (value As String) As Boolean

参数

value
String

要在集合中查找的 DbParameter 的名称。The name of the DbParameter to look for in the collection.

返回

Boolean

如果 DbParameter 位于集合中,则为 true;否则为 falsetrue if the DbParameter is in the collection; otherwise false.

实现

适用于