GenericRow.GetAs<T>(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the column value at the given index, as a type T. TODO: If the original type is "long" and its value can be fit into the "int", Pickler will serialize the value as int. Since the value is boxed, GetAs<T>(Int32) will throw an exception.
public T GetAs<T> (int index);
member this.GetAs : int -> 'T
Public Function GetAs(Of T) (index As Integer) As T
Type Parameters
- T
Type to convert to
Parameters
- index
- Int32
Index to look up
Returns
T
A column value as a type T
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for