GenericRow.GetAs<T>(Int32) 方法

定義

傳回指定索引處的資料行值,做為 T 類型。TODO:如果原始類型為 「long」,而且其值可以放入 「int」,Pickler 會將值序列化為 int。因為值已 Boxed, GetAs<T>(Int32) 所以會擲回例外狀況。

public T GetAs<T>(int index);
member this.GetAs : int -> 'T
Public Function GetAs(Of T) (index As Integer) As T

類型參數

T

要轉換成的類型

參數

index
Int32

要查閱的索引

傳回

T

資料行值作為類型 T

適用於