EntityParameterCollection.IndexOf Method
Finds the index in the collection.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | IndexOf(EntityParameter) | Gets the location of the specified EntityParameter in the collection. |
![]() | IndexOf(Object) | Gets the location of the specified Object in the collection.(Overrides DbParameterCollection.IndexOf(Object).) |
![]() | IndexOf(String) | Gets the location of the specified EntityParameter with the specified name.(Overrides DbParameterCollection.IndexOf(String).) |
EntityParameterCollection.IndexOf Method (EntityParameter)
Gets the location of the specified EntityParameter in the collection.
Parameters
- value
-
Type:
System.Data.Entity.Core.EntityClient.EntityParameter
The EntityParameter to find.
Return Value
Type: System.Int32The zero-based location of the specified EntityParameter that is a EntityParameter in the collection. Returns -1 when the object does not exist in the EntityParameterCollection .
EntityParameterCollection.IndexOf Method (Object)
Gets the location of the specified Object in the collection.
Parameters
- value
-
Type:
System.Object
The Object to find.
Return Value
Type: System.Int32The zero-based location of the specified Object that is a EntityParameter in the collection. Returns -1 when the object does not exist in the EntityParameterCollection .
Implements
IList.IndexOf(Object)EntityParameterCollection.IndexOf Method (String)
Gets the location of the specified EntityParameter with the specified name.
Parameters
- parameterName
-
Type:
System.String
The case-sensitive name of the EntityParameter to find.
Return Value
Type: System.Int32The zero-based location of the specified EntityParameter with the specified case-sensitive name. Returns -1 when the object does not exist in the EntityParameterCollection .