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;
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

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

적용 대상