Partager via


Méthode AdomdDataReader.GetTimeSpan

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

Espace de noms :  Microsoft.AnalysisServices.AdomdClient
Assembly :  Microsoft.AnalysisServices.AdomdClient (en Microsoft.AnalysisServices.AdomdClient.dll)

Syntaxe

'Déclaration
Public Function GetTimeSpan ( _
    ordinal As Integer _
) As TimeSpan
'Utilisation
Dim instance As AdomdDataReader 
Dim ordinal As Integer 
Dim returnValue As TimeSpan 

returnValue = instance.GetTimeSpan(ordinal)
public TimeSpan GetTimeSpan(
    int ordinal
)
public:
TimeSpan GetTimeSpan(
    int ordinal
)
member GetTimeSpan : 
        ordinal:int -> TimeSpan
public function GetTimeSpan(
    ordinal : int
) : TimeSpan

Paramètres

  • ordinal
    Type : System.Int32
    The zero-based ordinal position of the column to be retrieved.

Valeur de retour

Type : System.TimeSpan
A TimeSpan object that contains the value of the specified column.

Voir aussi

Référence

AdomdDataReader Classe

Espace de noms Microsoft.AnalysisServices.AdomdClient