InputFileChangeEventArgs.GetMultipleFiles(Int32) 方法

定義

取得檔案專案清單。 這個方法應該用於接受多個檔案的輸入。 如果輸入只接受單一檔案,請改用 File 屬性。

public System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Components.Forms.IBrowserFile> GetMultipleFiles (int maximumFileCount = 10);
member this.GetMultipleFiles : int -> System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Components.Forms.IBrowserFile>
Public Function GetMultipleFiles (Optional maximumFileCount As Integer = 10) As IReadOnlyList(Of IBrowserFile)

參數

maximumFileCount
Int32

要接受的檔案數目上限。 如果檔案數目超過此值,這個方法會擲回例外狀況。

傳回

適用於