TypedTableBaseExtensions.ElementAtOrDefault<TRow> 메서드

정의

시퀀스에서 지정된 행의 요소를 반환하거나, 행이 범위를 벗어나면 기본 값을 반환합니다.

public:
generic <typename TRow>
 where TRow : System::Data::DataRow[System::Runtime::CompilerServices::Extension]
 static TRow ElementAtOrDefault(System::Data::TypedTableBase<TRow> ^ source, int index);
public static TRow ElementAtOrDefault<TRow> (this System.Data.TypedTableBase<TRow> source, int index) where TRow : System.Data.DataRow;
public static TRow? ElementAtOrDefault<TRow> (this System.Data.TypedTableBase<TRow> source, int index) where TRow : System.Data.DataRow;
static member ElementAtOrDefault : System.Data.TypedTableBase<'Row (requires 'Row :> System.Data.DataRow)> * int -> 'Row (requires 'Row :> System.Data.DataRow)
<Extension()>
Public Function ElementAtOrDefault(Of TRow As DataRow) (source As TypedTableBase(Of TRow), index As Integer) As TRow

형식 매개 변수

TRow

요소 또는 행의 형식입니다.

매개 변수

source
TypedTableBase<TRow>

요소를 반환할 열거 가능한 개체입니다.

index
Int32

검색할 요소의 0부터 시작하는 인덱스입니다.

반환

TRow

시퀀스에서 지정된 행의 요소입니다.

적용 대상