ObjectParameterCollection.Item Property (String)


Provides an indexer that allows callers to retrieve parameters by name.

Namespace:   System.Data.Objects
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public ObjectParameter this[
	string name
] { get; }


Type: System.String

The name of the parameter to find. This name should not include the "@" parameter marker that is used in the Entity SQL statements, only the actual name.

Property Value

Type: System.Data.Objects.ObjectParameter

The ObjectParameter instance.

Exception Condition

No parameter with the specified name is found in the collection.

.NET Framework
Available since 3.5
Return to top