HttpFileCollection.GetKey メソッド
指定した数値インデックスを持つ HttpFileCollection メンバの名前を返します。
名前空間: System.Web
アセンブリ: System.Web (system.web.dll 内)
構文
Dim instance As HttpFileCollection Dim index As Integer Dim returnValue As String returnValue = instance.GetKey(index)

ファイル コレクション全体をループし、"CustInfo" という名前のファイル コレクション メンバが見つかった場合にアクションを実行する例を次に示します。
Dim loop1 As Integer Dim MyFileColl As HttpFileCollection = Request.Files For loop1 = 0 To MyFileColl.Count - 1 If MyFileColl.GetKey(loop1) = "CustInfo" Then '... End If Next loop1
int loop1; HttpFileCollection MyFileColl = Request.Files; for( loop1 = 0; loop1 < MyFileColl.Count; loop1++) { if( MyFileColl.GetKey(loop1) == "CustInfo") { //... } }

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- HttpFileCollection.GetKey メソッドのページへのリンク