Sugerir traducción
 
Otros han sugerido:

progress indicator
No hay más sugerencias.
Evaluar y enviar comentarios
Contraer todo/Expandir todo Contraer todo
Ver contenido:  en paraleloVer contenido: en paralelo
.NET Framework Class Library
IDataParameterCollection Interface

Collects all parameters relevant to a Command object and their mappings to DataSet columns, and is implemented by .NET Framework data providers that access data sources.

Namespace:  System.Data
Assembly:  System.Data (in System.Data.dll)
Visual Basic
Public Interface IDataParameterCollection _
    Inherits IList, ICollection, IEnumerable
C#
public interface IDataParameterCollection : IList, 
    ICollection, IEnumerable
Visual C++
public interface class IDataParameterCollection : IList, 
    ICollection, IEnumerable
F#
type IDataParameterCollection =  
    interface
        interface IList
        interface ICollection
        interface IEnumerable
    end

The IDataParameterCollection type exposes the following members.

  NameDescription
Public propertySupported by the XNA FrameworkCountGets the number of elements contained in the ICollection. (Inherited from ICollection.)
Public propertySupported by the XNA FrameworkIsFixedSizeGets a value indicating whether the IList has a fixed size. (Inherited from IList.)
Public propertySupported by the XNA FrameworkIsReadOnlyGets a value indicating whether the IList is read-only. (Inherited from IList.)
Public propertySupported by the XNA FrameworkIsSynchronizedGets a value indicating whether access to the ICollection is synchronized (thread safe). (Inherited from ICollection.)
Public propertySupported by the XNA FrameworkItem[([(Int32])])Gets or sets the element at the specified index. (Inherited from IList.)
Public propertySupported by the XNA FrameworkItem[([(String])])Gets or sets the parameter at the specified index.
Public propertySupported by the XNA FrameworkSyncRootGets an object that can be used to synchronize access to the ICollection. (Inherited from ICollection.)
Top
  NameDescription
Public methodSupported by the XNA FrameworkAddAdds an item to the IList. (Inherited from IList.)
Public methodSupported by the XNA FrameworkClearRemoves all items from the IList. (Inherited from IList.)
Public methodSupported by the XNA FrameworkContains(Object)Determines whether the IList contains a specific value. (Inherited from IList.)
Public methodSupported by the XNA FrameworkContains(String)Gets a value indicating whether a parameter in the collection has the specified name.
Public methodSupported by the XNA FrameworkCopyToCopies the elements of the ICollection to an Array, starting at a particular Array index. (Inherited from ICollection.)
Public methodSupported by the XNA FrameworkGetEnumeratorReturns an enumerator that iterates through a collection. (Inherited from IEnumerable.)
Public methodSupported by the XNA FrameworkIndexOf(Object)Determines the index of a specific item in the IList. (Inherited from IList.)
Public methodSupported by the XNA FrameworkIndexOf(String)Gets the location of the IDataParameter within the collection.
Public methodSupported by the XNA FrameworkInsertInserts an item to the IList at the specified index. (Inherited from IList.)
Public methodSupported by the XNA FrameworkRemoveRemoves the first occurrence of a specific object from the IList. (Inherited from IList.)
Public methodSupported by the XNA FrameworkRemoveAt(Int32)Removes the IList item at the specified index. (Inherited from IList.)
Public methodSupported by the XNA FrameworkRemoveAt(String)Removes the IDataParameter from the collection.
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>)>)Converts 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

The IDataParameterCollection interface allows an inheriting class to implement a Parameter collection. For more information about Parameter classes, see Configuring Parameters and Parameter Data Types (ADO.NET).

An application does not create an instance of the IDataParameterCollection interface directly, but creates an instance of a class that inherits IDataParameterCollection.

Classes that inherit IDataParameterCollection must implement the inherited members, and typically define additional members to add provider-specific functionality. For example, the IDataParameterCollection interface defines one implementation of the RemoveAt method. In turn, the OleDbParameterCollection class inherits this method, and defines two additional overloads of RemoveAt.

Notes to Implementers

When you inherit from the IDataParameterCollection interface, you should implement the following constructor.

Item

Description

PrvParameterCollection()

Creates an empty PrvParameterCollection class.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Biblioteca de clases de .NET Framework
IDataParameterCollection (Interfaz)

Recopila todos los parámetros relevantes para un objeto Command y sus asignaciones a las columnas del DataSet. La implementan los proveedores de datos de .NET Framework que tienen acceso a los orígenes de datos.

Espacio de nombres:  System.Data
Ensamblado:  System.Data (en System.Data.dll)
Visual Basic
Public Interface IDataParameterCollection _
    Inherits IList, ICollection, IEnumerable
C#
public interface IDataParameterCollection : IList, 
    ICollection, IEnumerable
Visual C++
public interface class IDataParameterCollection : IList, 
    ICollection, IEnumerable
F#
type IDataParameterCollection =  
    interface
        interface IList
        interface ICollection
        interface IEnumerable
    end

El tipo IDataParameterCollection expone los siguientes miembros.

  NombreDescripción
Propiedad públicaCompatible con XNA FrameworkCountObtiene el número de elementos incluidos en ICollection. (Se hereda de ICollection).
Propiedad públicaCompatible con XNA FrameworkIsFixedSizeObtiene un valor que indica si IList tiene un tamaño fijo. (Se hereda de IList).
Propiedad públicaCompatible con XNA FrameworkIsReadOnlyObtiene un valor que indica si IList es de sólo lectura. (Se hereda de IList).
Propiedad públicaCompatible con XNA FrameworkIsSynchronizedObtiene un valor que indica si el acceso a ICollection está sincronizado (es seguro para la ejecución de subprocesos). (Se hereda de ICollection).
Propiedad públicaCompatible con XNA FrameworkItem[([(Int32])])Obtiene o establece el elemento que se encuentra en el índice especificado. (Se hereda de IList).
Propiedad públicaCompatible con XNA FrameworkItem[([(String])])Obtiene o establece el parámetro en el índice especificado.
Propiedad públicaCompatible con XNA FrameworkSyncRootObtiene un objeto que se puede utilizar para sincronizar el acceso a ICollection. (Se hereda de ICollection).
Arriba
  NombreDescripción
Método públicoCompatible con XNA FrameworkAddAgrega un elemento a la interfaz IList. (Se hereda de IList).
Método públicoCompatible con XNA FrameworkClearQuita todos los elementos de IList. (Se hereda de IList).
Método públicoCompatible con XNA FrameworkContains(Object)Determina si la interfaz IList contiene un valor específico. (Se hereda de IList).
Método públicoCompatible con XNA FrameworkContains(String)Obtiene un valor que indica si un parámetro de la colección tiene el nombre especificado.
Método públicoCompatible con XNA FrameworkCopyToCopia los elementos de la interfaz ICollection a un objeto Array, a partir de un índice determinado de la clase Array. (Se hereda de ICollection).
Método públicoCompatible con XNA FrameworkGetEnumeratorDevuelve un enumerador que recorre en iteración una colección. (Se hereda de IEnumerable).
Método públicoCompatible con XNA FrameworkIndexOf(Object)Determina el índice de un elemento específico en la interfaz IList. (Se hereda de IList).
Método públicoCompatible con XNA FrameworkIndexOf(String)Obtiene la ubicación de IDataParameter dentro de la colección.
Método públicoCompatible con XNA FrameworkInsertInserta un elemento en la interfaz IList, en el índice especificado. (Se hereda de IList).
Método públicoCompatible con XNA FrameworkRemoveQuita la primera aparición de un objeto específico de la interfaz IList. (Se hereda de IList).
Método públicoCompatible con XNA FrameworkRemoveAt(Int32)Quita el elemento de IList en el índice especificado. (Se hereda de IList).
Método públicoCompatible con XNA FrameworkRemoveAt(String)Quita el IDataParameter de la colección.
Arriba
  NombreDescripción
Método de extensión públicoAsParallelHabilita la paralelización de una consulta. (Definido por ParallelEnumerable).
Método de extensión públicoAsQueryableConvierte una interfaz IEnumerable en IQueryable. (Definido por Queryable).
Método de extensión públicoCompatible con XNA FrameworkCast<(Of <(TResult>)>)Convierte los elementos de IEnumerable en el tipo especificado. (Definido por Enumerable).
Método de extensión públicoCompatible con XNA FrameworkOfType<(Of <(TResult>)>)Filtra los elementos de IEnumerable en función de un tipo especificado. (Definido por Enumerable).
Arriba

La interfaz IDataParameterCollection permite a una clase heredada implementar una colección Parameter. Para obtener más información sobre las clases Parameter, vea Configurar parámetros y tipos de datos de parámetros (ADO.NET).

Una aplicación no crea una instancia de la interfaz IDataParameterCollection directamente, sino que la crea de una clase que hereda de IDataParameterCollection.

Las clases que heredan de IDataParameterCollection deben implementar los miembros heredados y suelen definir miembros adicionales para agregar la funcionalidad específica de proveedor. Por ejemplo, la interfaz IDataParameterCollection define una implementación del método RemoveAt. A su vez, la clase OleDbParameterCollection hereda este método y define dos sobrecargas adicionales de RemoveAt.

Notas para los implementadores

Al heredar de la interfaz IDataParameterCollection, se debe implementar el constructor siguiente.

Elemento

Descripción

PrvParameterCollection()

Crea una clase PrvParameterCollection vacía.

.NET Framework

Compatible con: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Compatible con: 4, 3.5 SP1

Windows 7, Windows Vista SP1 o posterior, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (no se admite Server Core), Windows Server 2008 R2 (se admite Server Core con SP1 o posterior), Windows Server 2003 SP2

.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.
Contenido de la comunidad   ¿Qué es Community Content?
Agregar contenido nuevo RSS  Anotaciones
Processing
© 2012 Microsoft. Reservados todos los derechos. Términos de uso | Marcas Registradas | Privacidad
Page view tracker