次の方法で共有


FileResult コンストラクター

定義

オーバーロード

FileResult(FileBase)

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

FileResult(String)

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

FileResult(String, String)

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

FileResult(FileBase)

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

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

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

パラメーター

file
FileBase

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

適用対象

FileResult(String)

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

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

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

パラメーター

fullPath
String

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

適用対象

FileResult(String, String)

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

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

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

パラメーター

fullPath
String

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

contentType
String

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

適用対象