Compartir a través de


TraceReader.GetDateTime Método

Gets a DateTime value of the data value at the specified column position.

Espacio de nombres:  Microsoft.SqlServer.Management.Trace
Ensamblado:  Microsoft.SqlServer.ConnectionInfoExtended (en Microsoft.SqlServer.ConnectionInfoExtended.dll)

Sintaxis

'Declaración
Public Function GetDateTime ( _
    ordinal As Integer _
) As DateTime
'Uso
Dim instance As TraceReader 
Dim ordinal As Integer 
Dim returnValue As DateTime 

returnValue = instance.GetDateTime(ordinal)
public DateTime GetDateTime(
    int ordinal
)
public:
virtual DateTime GetDateTime(
    int ordinal
) sealed
abstract GetDateTime : 
        ordinal:int -> DateTime  
override GetDateTime : 
        ordinal:int -> DateTime
public final function GetDateTime(
    ordinal : int
) : DateTime

Parámetros

  • ordinal
    Tipo: System.Int32
    An Int32 value that specifies the column position of the data.

Valor devuelto

Tipo: System.DateTime
A DateTime system object value that represents the data at the specified column position.

Implementa

IDataRecord.GetDateTime(Int32)

Ejemplos

Readme_Tracer

Vea también

Referencia

TraceReader Clase

Espacio de nombres Microsoft.SqlServer.Management.Trace

Otros recursos

Marcas de seguimiento (Transact-SQL)

Plantillas y permisos de SQL Server Profiler