Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IFormFileCollection.Item[String] Property

Definition

Namespace:
Microsoft.AspNetCore.Http
Assembly:
Microsoft.AspNetCore.Http.Features.dll
Package:
Microsoft.AspNetCore.Http.Features v1.0.0
Package:
Microsoft.AspNetCore.Http.Features v1.1.0
Package:
Microsoft.AspNetCore.App.Ref v10.0.0
Package:
Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.Http.Features v2.0.0
Package:
Microsoft.AspNetCore.Http.Features v2.1.0
Package:
Microsoft.AspNetCore.Http.Features v2.2.0
Package:
Microsoft.AspNetCore.Http.Features v3.0.3
Package:
Microsoft.AspNetCore.Http.Features v3.1.18
Package:
Microsoft.AspNetCore.Http.Features v5.0.9
Package:
Microsoft.AspNetCore.App.Ref v6.0.36
Package:
Microsoft.AspNetCore.App.Ref v7.0.5
Package:
Microsoft.AspNetCore.App.Ref v8.0.19
Package:
Microsoft.AspNetCore.App.Ref v9.0.8
Source:
IFormFileCollection.cs

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.

Gets the first file with the specified name.

public:
 property Microsoft::AspNetCore::Http::IFormFile ^ default[System::String ^] { Microsoft::AspNetCore::Http::IFormFile ^ get(System::String ^ name); };
public Microsoft.AspNetCore.Http.IFormFile this[string name] { get; }
public Microsoft.AspNetCore.Http.IFormFile? this[string name] { get; }
member this.Item(string) : Microsoft.AspNetCore.Http.IFormFile
Default Public ReadOnly Property Item(name As String) As IFormFile

Parameters

name
String

The name of the file to get.

Property Value

The requested file, or null if it is not present.

Applies to


Feedback

Was this page helpful?