HttpFileCollection.GetKey(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the name of the HttpFileCollection member with the specified numerical index.
public:
System::String ^ GetKey(int index);
public string GetKey (int index);
member this.GetKey : int -> string
Public Function GetKey (index As Integer) As String
Parameters
- index
- Int32
The index of the object name to be returned.
Returns
The name of the HttpFileCollection member specified by index
.
Examples
The following example loops through the file collection and takes action if a file collection member with the name "CustInfo" is found.
int loop1;
HttpFileCollection MyFileColl = Request.Files;
for( loop1 = 0; loop1 < MyFileColl.Count; loop1++)
{
if( MyFileColl.GetKey(loop1) == "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
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET