次の方法で共有


ReadOnlyFile クラス

定義

読み取り専用のファイルとそのコンテンツ タイプの表現。

public ref class ReadOnlyFile : Microsoft::Maui::Storage::FileBase
public class ReadOnlyFile : Microsoft.Maui.Storage.FileBase
type ReadOnlyFile = class
    inherit FileBase
Public Class ReadOnlyFile
Inherits FileBase
継承
ReadOnlyFile

コンストラクター

ReadOnlyFile(FileBase)

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

ReadOnlyFile(String)

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

ReadOnlyFile(String, String)

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

プロパティ

ContentType

ファイルのコンテンツ タイプを MIME の種類 (例: ) として取得または設定します image/png

(継承元 FileBase)
FileName

このファイルのファイル名を取得または設定します。

(継承元 FileBase)
FullPath

完全なパスとファイル名を取得します。

(継承元 FileBase)

メソッド

OpenReadAsync()

ファイルシステム上 Stream の対応するファイルへの を開きます。

(継承元 FileBase)

適用対象