ReadOnlyFile 建構函式

定義

多載

名稱 Description
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(String, String)

建立一個檔案,輸入檔案路徑與內容類型(MIME 類型)。

public ReadOnlyFile(string fullPath, string contentType);

參數

fullPath
System.String

完整的檔案路徑。

contentType
System.String

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

適用於