Export (0) Print
Expand All

DbParameterCollection Class

The base class for a collection of parameters relevant to a DbCommand.

Namespace:  System.Data.Common
Assembly:  System.Data (in System.Data.dll)

'Declaration
Public MustInherit Class DbParameterCollection _
	Inherits MarshalByRefObject _
	Implements IDataParameterCollection, IList, ICollection, IEnumerable

The DbParameterCollection type exposes the following members.

  NameDescription
Protected methodSupported by the XNA FrameworkDbParameterCollectionInitializes a new instance of the DbParameterCollection class.
Top

  NameDescription
Public propertySupported by the XNA FrameworkCountSpecifies the number of items in the collection.
Public propertySupported by the XNA FrameworkIsFixedSizeSpecifies whether the collection is a fixed size.
Public propertySupported by the XNA FrameworkIsReadOnlySpecifies whether the collection is read-only.
Public propertySupported by the XNA FrameworkIsSynchronizedSpecifies whether the collection is synchronized.
Public propertySupported by the XNA FrameworkItem(Int32)Gets and sets the DbParameter at the specified index.
Public propertySupported by the XNA FrameworkItem(String)Gets and sets the DbParameter with the specified name.
Public propertySupported by the XNA FrameworkSyncRootSpecifies the Object to be used to synchronize access to the collection.
Top

  NameDescription
Public methodSupported by the XNA FrameworkAddAdds the specified DbParameter object to the DbParameterCollection.
Public methodSupported by the XNA FrameworkAddRangeAdds an array of items with the specified values to the DbParameterCollection.
Public methodSupported by the XNA FrameworkClearRemoves all DbParameter values from the DbParameterCollection.
Public methodSupported by the XNA FrameworkContains(Object)Indicates whether a DbParameter with the specified Value is contained in the collection.
Public methodSupported by the XNA FrameworkContains(String)Indicates whether a DbParameter with the specified name exists in the collection.
Public methodSupported by the XNA FrameworkCopyToCopies an array of items to the collection starting at the specified 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 methodSupported by the XNA FrameworkEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodSupported by the XNA FrameworkFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by the XNA FrameworkGetEnumeratorExposes the GetEnumerator method, which supports a simple iteration over a collection by a .NET Framework data provider.
Public methodSupported by the XNA FrameworkGetHashCodeServes 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.)
Protected methodSupported by the XNA FrameworkGetParameter(Int32)Returns the DbParameter object at the specified index in the collection.
Protected methodSupported by the XNA FrameworkGetParameter(String)Returns DbParameter the object with the specified name.
Public methodSupported by the XNA FrameworkGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSupported by the XNA FrameworkIndexOf(Object)Returns the index of the specified DbParameter object.
Public methodSupported by the XNA FrameworkIndexOf(String)Returns the index of the DbParameter object with the specified name.
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodSupported by the XNA FrameworkInsertInserts the specified index of the DbParameter object with the specified name into the collection at the specified index.
Protected methodSupported by the XNA FrameworkMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodMemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public methodSupported by the XNA FrameworkRemoveRemoves the specified DbParameter object from the collection.
Public methodSupported by the XNA FrameworkRemoveAt(Int32)Removes the DbParameter object at the specified from the collection.
Public methodSupported by the XNA FrameworkRemoveAt(String)Removes the DbParameter object with the specified name from the collection.
Protected methodSupported by the XNA FrameworkSetParameter(Int32, DbParameter)Sets the DbParameter object at the specified index to a new value.
Protected methodSupported by the XNA FrameworkSetParameter(String, DbParameter)Sets the DbParameter object with the specified name to a new value.
Public methodSupported by the XNA FrameworkToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public Extension MethodAsParallelEnables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension MethodAsQueryableConverts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodSupported by the XNA FrameworkCast(Of TResult)Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodSupported by the XNA FrameworkOfType(Of TResult)Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

  NameDescription
Explicit interface implemetationPrivate propertySupported by the XNA FrameworkIDataParameterCollection.ItemGets or sets the parameter at the specified index.
Explicit interface implemetationPrivate propertySupported by the XNA FrameworkIList.ItemGets or sets the element at the specified index.
Top

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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