Share via


FormFileCollection.GetFile(String) Method

Definition

Gets the first file with the specified name.

public:
 virtual Microsoft::AspNetCore::Http::IFormFile ^ GetFile(System::String ^ name);
public Microsoft.AspNetCore.Http.IFormFile GetFile (string name);
public Microsoft.AspNetCore.Http.IFormFile? GetFile (string name);
abstract member GetFile : string -> Microsoft.AspNetCore.Http.IFormFile
override this.GetFile : string -> Microsoft.AspNetCore.Http.IFormFile
Public Function GetFile (name As String) As IFormFile

Parameters

name
String

The name of the file to get.

Returns

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

Implements

Applies to