IFormFileCollection.GetFile(String) 方法

定義

取得具有指定名稱的第一個檔案。

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

參數

name
String

要取得的檔案名。

傳回

要求的檔案,如果不存在,則為 null。

適用於