ReadOnlyFile 建構函式

定義

多載

ReadOnlyFile(String)

建構檔案路徑中的檔案。

ReadOnlyFile(FileBase)

建構檔案中採用的檔案。

ReadOnlyFile(String, String)

建構採用檔案路徑和內容類型的檔案, (MIME類型) 。

ReadOnlyFile(String)

建構檔案路徑中的檔案。

public ReadOnlyFile (string fullPath);

參數

fullPath
System.String

完整檔案路徑。

適用於

ReadOnlyFile(FileBase)

建構檔案中採用的檔案。

public ReadOnlyFile (Xamarin.Essentials.FileBase file);

參數

file
FileBase

要用於 ReadOnlyFile 的檔案

適用於

ReadOnlyFile(String, String)

建構採用檔案路徑和內容類型的檔案, (MIME類型) 。

public ReadOnlyFile (string fullPath, string contentType);

參數

fullPath
System.String

完整檔案路徑。

contentType
System.String

內容類型 (MIME 類型) 檔案 (,例如: image/png) 。

適用於