DbParameterCollection.Contains Method

Definition

Indicates whether a DbParameter with the specified property exists in the collection.

Overloads

Contains(Object)

Indicates whether a DbParameter with the specified Value is contained in the collection.

Contains(String)

Indicates whether a DbParameter with the specified name exists in the collection.

Contains(Object)

Source:
DbParameterCollection.cs
Source:
DbParameterCollection.cs
Source:
DbParameterCollection.cs

Indicates whether a DbParameter with the specified Value is contained in the collection.

C#
public abstract bool Contains(object value);

Parameters

value
Object

The Value of the DbParameter to look for in the collection.

Returns

true if the DbParameter is in the collection; otherwise false.

Implements

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

Contains(String)

Source:
DbParameterCollection.cs
Source:
DbParameterCollection.cs
Source:
DbParameterCollection.cs

Indicates whether a DbParameter with the specified name exists in the collection.

C#
public abstract bool Contains(string value);

Parameters

value
String

The name of the DbParameter to look for in the collection.

Returns

true if the DbParameter is in the collection; otherwise false.

Implements

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0