EntityParameterCollection.IndexOf Method    
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the location of the specified EntityParameter in the collection.
Overloads
| IndexOf(String) | Gets the location of the specified EntityParameter with the specified name. | 
| IndexOf(EntityParameter) | Gets the location of the specified EntityParameter in the collection. | 
| IndexOf(Object) | Gets the location of the specified Object in the collection. | 
IndexOf(String)
Gets the location of the specified EntityParameter with the specified name.
public:
 override int IndexOf(System::String ^ parameterName);public override int IndexOf(string parameterName);override this.IndexOf : string -> intPublic Overrides Function IndexOf (parameterName As String) As IntegerParameters
- parameterName
- String
The case-sensitive name of the EntityParameter to find.
Returns
The zero-based location of the specified EntityParameter with the specified case-sensitive name. Returns -1 when the object does not exist in the EntityParameterCollection.
Applies to
IndexOf(EntityParameter)
Gets the location of the specified EntityParameter in the collection.
public:
 int IndexOf(System::Data::EntityClient::EntityParameter ^ value);public int IndexOf(System.Data.EntityClient.EntityParameter value);override this.IndexOf : System.Data.EntityClient.EntityParameter -> intPublic Function IndexOf (value As EntityParameter) As IntegerParameters
- value
- EntityParameter
The EntityParameter to find.
Returns
The 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.
Applies to
IndexOf(Object)
Gets the location of the specified Object in the collection.
public:
 override int IndexOf(System::Object ^ value);public override int IndexOf(object value);override this.IndexOf : obj -> intPublic Overrides Function IndexOf (value As Object) As IntegerParameters
Returns
The 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.