Export (0) Print
Expand All

EntityParameterCollection Class

Represents a collection of parameters associated with a EntityCommand.

System.Object
  System.MarshalByRefObject
    System.Data.Common.DbParameterCollection
      System.Data.EntityClient.EntityParameterCollection

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

public sealed class EntityParameterCollection : DbParameterCollection

The EntityParameterCollection type exposes the following members.

  NameDescription
Public propertyCountGets an Integer that contains the number of elements in the EntityParameterCollection. (Overrides DbParameterCollection.Count.)
Public propertyIsFixedSizeGets a value that indicates whether the EntityParameterCollection has a fixed size. (Overrides DbParameterCollection.IsFixedSize.)
Public propertyIsReadOnlyGets a value that indicates whether the EntityParameterCollection is read-only. (Overrides DbParameterCollection.IsReadOnly.)
Public propertyIsSynchronizedGets a value that indicates whether the EntityParameterCollection is synchronized. (Overrides DbParameterCollection.IsSynchronized.)
Public propertyItem[Int32]Gets the EntityParameter at the specified index.
Public propertyItem[String]Gets the EntityParameter with the specified name.
Public propertySyncRootGets an object that can be used to synchronize access to the EntityParameterCollection. (Overrides DbParameterCollection.SyncRoot.)
Top

  NameDescription
Public methodAdd(EntityParameter)Adds the specified EntityParameter object to the EntityParameterCollection.
Public methodAdd(Object)Adds the specified object to the EntityParameterCollection. (Overrides DbParameterCollection.Add(Object).)
Public methodAdd(String, DbType)Adds a EntityParameter to the EntityParameterCollection given the parameter name and the data type.
Public methodAdd(String, DbType, Int32)Adds a EntityParameter to the EntityParameterCollection with the parameter name, the data type, and the column length.
Public methodAddRange(Array)Adds an array of values to the end of the EntityParameterCollection. (Overrides DbParameterCollection.AddRange(Array).)
Public methodAddRange(EntityParameter[])Adds an array of EntityParameter values to the end of the EntityParameterCollection.
Public methodAddWithValueAdds a value to the end of the EntityParameterCollection.
Public methodClearRemoves all the EntityParameter objects from the EntityParameterCollection. (Overrides DbParameterCollection.Clear().)
Public methodContains(Object)Determines whether the specified Object is in this EntityParameterCollection. (Overrides DbParameterCollection.Contains(Object).)
Public methodContains(String)Determines whether the specified EntityParameter is in this EntityParameterCollection. (Overrides DbParameterCollection.Contains(String).)
Public methodCopyTo(Array, Int32)Copies all the elements of the current EntityParameterCollection to the specified one-dimensional Array starting at the specified destination Array index. (Overrides DbParameterCollection.CopyTo(Array, Int32).)
Public methodCopyTo(EntityParameter[], Int32)Copies all the elements of the current EntityParameterCollection to the specified EntityParameterCollection starting at the specified destination index.
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetEnumeratorReturns an enumerator that iterates through the EntityParameterCollection. (Overrides DbParameterCollection.GetEnumerator().)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIndexOf(EntityParameter)Gets the location of the specified EntityParameter in the collection.
Public methodIndexOf(Object)Gets the location of the specified Object in the collection. (Overrides DbParameterCollection.IndexOf(Object).)
Public methodIndexOf(String)Gets the location of the specified EntityParameter with the specified name. (Overrides DbParameterCollection.IndexOf(String).)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodInsert(Int32, EntityParameter)Inserts a EntityParameter object into the EntityParameterCollection at the specified index.
Public methodInsert(Int32, Object)Inserts an Object into the EntityParameterCollection at the specified index. (Overrides DbParameterCollection.Insert(Int32, Object).)
Public methodRemove(EntityParameter)Removes the specified EntityParameter from the collection.
Public methodRemove(Object)Removes the specified parameter from the collection. (Overrides DbParameterCollection.Remove(Object).)
Public methodRemoveAt(Int32)Removes the EntityParameter from the EntityParameterCollection at the specified index. (Overrides DbParameterCollection.RemoveAt(Int32).)
Public methodRemoveAt(String)Removes the EntityParameter from the EntityParameterCollection at the specified parameter name. (Overrides DbParameterCollection.RemoveAt(String).)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate propertyIDataParameterCollection.ItemGets or sets the parameter at the specified index. (Inherited from DbParameterCollection.)
Explicit interface implemetationPrivate propertyIList.ItemGets or sets the element at the specified index. (Inherited from DbParameterCollection.)
Top

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft