IFormFileCollection.GetFile(String) 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.
Gets the first file with the specified name.
public:
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
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.