Share via


PointCollection.GetMany(UInt32, Point[]) 메서드

정의

반복기를 통해 단일 패스에서 여러 요소를 검색합니다.

public:
 virtual unsigned int GetMany(unsigned int startIndex, Platform::Array <Point> ^ items) = IVector<Point>::GetMany;
uint32_t GetMany(uint32_t const& startIndex, winrt::array_view <Point> & items);
public uint GetMany(uint startIndex, Point[] items);
function getMany(startIndex, items)
Public Function GetMany (startIndex As UInteger, items As Point()) As UInteger

매개 변수

startIndex
UInt32

unsigned int

uint32_t

검색을 시작할 인덱스입니다.

items
Point[]

결과의 대상을 제공합니다. 검색해야 하는 결과 수를 지정하기 위해 초기 배열 크기를 "용량"으로 조정합니다.

반환

UInt32

unsigned int

uint32_t

검색된 항목의 수입니다.

구현

M:Windows.Foundation.Collections.IVector1.GetMany(System.UInt32,0[]) M:Windows.Foundation.Collections.IVector1.GetMany(unsigned int,0[]) M:Windows.Foundation.Collections.IVector1.GetMany(uint32_t,0[])

설명

GetMany 메서드는 제공된 배열의 각 요소에 대해 및 를 호출하는 것처럼 동일하게 작동합니다. 즉, GetMany 메서드에서 반환된 첫 번째 요소는 GetMany를 호출하기 전에 속성을 검색하여 반환된 요소와 동일합니다. GetMany 호출이 반환된 후 속성은 GetMany 호출에서 반환된 마지막 요소 다음에 오는 요소를 검색하거나 시퀀스에 요소가 더 이상 없으면 오류를 생성합니다.

GetMany 메서드는 반환된 실제 요소 수를 반환합니다. 최소 a) 컬렉션에 남아 있는 요소 수 또는 b) 요청된 요소 수, 즉 "용량"이어야 합니다. 따라서 GetMany가 요청된 요소 수보다 적게 반환될 때마다 시퀀스의 끝에 도달했습니다. "실제" 출력 매개 변수에서 검색된 요소 수를 반환합니다.

호출자가 용량을 0으로 지정하면 반복기의 위치가 변경되지 않습니다. 반환된 값 다음에 있는 배열의 요소는 변경되지 않습니다.

적용 대상