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

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


IFormFileCollection.GetFile(String) Method

Definition

Gets the first file with the specified name.

C#
public Microsoft.AspNetCore.Http.IFormFile GetFile (string name);
C#
public Microsoft.AspNetCore.Http.IFormFile? GetFile (string name);

Parameters

name
String

The name of the file to get.

Returns

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