Share via


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

HttpChallengeHeaderValueCollection 内の HttpChallengeHeaderValue 項目の先頭の 0 から始まるインデックス。

戻り値

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 として指定するのが一般的です。ここで、コピーするコレクションの Size に一致する長さのコピー先配列を作成しました。

このメソッドは、ソース コレクション内の要素の数が項目で指定されたコピー先配列の長さを超える場合に例外をスロー します

Visual C++ コンポーネント拡張機能 (C++/CX) または JavaScript を使用してプログラミングする場合は、GetView メソッドを呼び出して IVectorView コピーを作成できます。

適用対象

こちらもご覧ください