HttpChallengeHeaderValueCollection.GetMany 方法

定義

擷取從集合中指定索引開始的 HttpChallengeHeaderValue 專案。

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

參數

startIndex
UInt32

unsigned int

uint32_t

HttpChallengeHeaderValueCollectionHttpChallengeHeaderValue專案的開頭以零起始的索引。

items
HttpChallengeHeaderValue[]

HttpChallengeHeaderValue專案的陣列,從HttpChallengeHeaderValueCollection中的startIndex開始。

傳回

UInt32

unsigned int

uint32_t

擷取的 HttpChallengeHeaderValue 專案數目。

實作

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[])

備註

元素會以列舉值逐一查看集合的順序複製到陣列。 如果您所做的一切都是建立簡單集合專案的複本,通常會將 startIndex 指定為 0,其中您已建立符合所複製集合 大小 之長度的目的地陣列。

如果來源集合中的專案數目大於專案中指定之目的陣列的長度,這個方法會擲回例外 狀況

如果您是使用 Visual C++ 元件延伸模組進行程式設計, (C++/CX) 或 JavaScript,您可以呼叫GetView方法來建立IVectorView複本。

適用於

另請參閱