次の方法で共有


ReadOnlyFile コンストラクター

定義

オーバーロード

ReadOnlyFile(FileBase)

既存のインスタンスを使用して ReadOnlyFile クラスの新しいインスタンスを初期化します。

ReadOnlyFile(String)

ファイル パスから クラスの ReadOnlyFile 新しいインスタンスを初期化します。

ReadOnlyFile(String, String)

ファイル パスから クラスの新しいインスタンスを ReadOnlyFile 初期化し、コンテンツ タイプを明示的に指定します。

ReadOnlyFile(FileBase)

ソース:
FileSystem.shared.cs
ソース:
FileSystem.shared.cs

既存のインスタンスを使用して ReadOnlyFile クラスの新しいインスタンスを初期化します。

public:
 ReadOnlyFile(Microsoft::Maui::Storage::FileBase ^ file);
public ReadOnlyFile (Microsoft.Maui.Storage.FileBase file);
new Microsoft.Maui.Storage.ReadOnlyFile : Microsoft.Maui.Storage.FileBase -> Microsoft.Maui.Storage.ReadOnlyFile
Public Sub New (file As FileBase)

パラメーター

file
FileBase

FileBase複製に使用されるインスタンス。

適用対象

ReadOnlyFile(String)

ソース:
FileSystem.shared.cs
ソース:
FileSystem.shared.cs

ファイル パスから クラスの ReadOnlyFile 新しいインスタンスを初期化します。

public:
 ReadOnlyFile(System::String ^ fullPath);
public ReadOnlyFile (string fullPath);
new Microsoft.Maui.Storage.ReadOnlyFile : string -> Microsoft.Maui.Storage.ReadOnlyFile
Public Sub New (fullPath As String)

パラメーター

fullPath
String

ファイルシステム上の対応するファイルへの完全なファイル パス。

適用対象

ReadOnlyFile(String, String)

ソース:
FileSystem.shared.cs
ソース:
FileSystem.shared.cs

ファイル パスから クラスの新しいインスタンスを ReadOnlyFile 初期化し、コンテンツ タイプを明示的に指定します。

public:
 ReadOnlyFile(System::String ^ fullPath, System::String ^ contentType);
public ReadOnlyFile (string fullPath, string contentType);
new Microsoft.Maui.Storage.ReadOnlyFile : string * string -> Microsoft.Maui.Storage.ReadOnlyFile
Public Sub New (fullPath As String, contentType As String)

パラメーター

fullPath
String

ファイルシステム上の対応するファイルへの完全なファイル パス。

contentType
String

ファイルのコンテンツ タイプ (MIME タイプ) (例: image/png)。

適用対象