共用方式為


GetDateTime 方法

Returns a DateTime that contains the value from the specified column.

命名空間:  Microsoft.AnalysisServices.AdomdClient
組件:  Microsoft.AnalysisServices.AdomdClient (在 Microsoft.AnalysisServices.AdomdClient.dll 中)

語法

'宣告
Public Function GetDateTime ( _
    ordinal As Integer _
) As DateTime
'用途
Dim instance As AdomdDataReader
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

參數

傳回值

型別:System. . :: . .DateTime
A DateTime that contains the value, converted to local system time, of the specified column.

實作

IDataRecord. . :: . .GetDateTime(Int32)