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
SqlDataReader..::.GetTimeSpan Method

Retrieves the value of the specified column as a TimeSpan object.

Namespace:  System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)
Visual Basic
Public Overridable Function GetTimeSpan ( _
    i As Integer _
) As TimeSpan
C#
public virtual TimeSpan GetTimeSpan(
    int i
)
Visual C++
public:
virtual TimeSpan GetTimeSpan(
    int i
)
F#
abstract GetTimeSpan : 
        i:int -> TimeSpan 
override GetTimeSpan : 
        i:int -> TimeSpan 

Parameters

i
Type: System..::.Int32
The zero-based column ordinal.

Return Value

Type: System..::.TimeSpan
The value of the specified column.
ExceptionCondition
InvalidCastException

The specified cast is not valid.

No conversions are performed; therefore, the data retrieved must already be a TimeSpan object.

Call IsDBNull to check for null values before calling this method.

.NET Framework

Supported in: 4, 3.5 SP1, 3.0 SP1, 2.0 SP1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, 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
SqlDataReader..::.GetTimeSpan (Método)

Recupera el valor de la columna especificada como objeto TimeSpan.

Espacio de nombres:  System.Data.SqlClient
Ensamblado:  System.Data (en System.Data.dll)
Visual Basic
Public Overridable Function GetTimeSpan ( _
    i As Integer _
) As TimeSpan
C#
public virtual TimeSpan GetTimeSpan(
    int i
)
Visual C++
public:
virtual TimeSpan GetTimeSpan(
    int i
)
F#
abstract GetTimeSpan : 
        i:int -> TimeSpan 
override GetTimeSpan : 
        i:int -> TimeSpan 

Parámetros

i
Tipo: System..::.Int32
Ordinal de base cero de la columna.

Valor devuelto

Tipo: System..::.TimeSpan
Valor de la columna especificada.
ExcepciónCondición
InvalidCastException

La conversión especificada no es válida.

No se realizan conversiones, por lo que los datos recuperados deben presentarse en forma de objeto TimeSpan.

Antes de llamar a este método, llame a IsDBNull para comprobar si hay valores null.

.NET Framework

Compatible con: 4, 3.5 SP1, 3.0 SP1, 2.0 SP1

.NET Framework Client Profile

Compatible con: 4, 3.5 SP1

Windows 7, Windows Vista SP1 o posterior, Windows XP SP3, 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