EntityParameterCollection.Item[] Property

Definition

Gets the EntityParameter with a specified attribute.

Overloads

Item[Int32]

Gets the EntityParameter at the specified index.

Item[String]

Gets the EntityParameter with the specified name.

Item[Int32]

Gets the EntityParameter at the specified index.

C#
public System.Data.EntityClient.EntityParameter this[int index] { get; set; }

Parameters

index
Int32

The zero-based index of the parameter to retrieve.

Property Value

The EntityParameter at the specified index.

Exceptions

The specified index does not exist.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 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

Item[String]

Gets the EntityParameter with the specified name.

C#
public System.Data.EntityClient.EntityParameter this[string parameterName] { get; set; }

Parameters

parameterName
String

The name of the parameter to retrieve.

Property Value

The EntityParameter with the specified name.

Exceptions

The specified name does not exist.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 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