Прочетете на английски

Споделяне чрез


IFormFileCollection.Item[String] Property

Definition

Gets the first file with the specified name.

C#
public Microsoft.AspNetCore.Http.IFormFile this[string name] { get; }
C#
public Microsoft.AspNetCore.Http.IFormFile? this[string name] { get; }

Parameters

name
String

The name of the file to get.

Property Value

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

Applies to

Продукт Версии
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0