StorageFile.Path プロパティ

定義

ファイルにパスがある場合は、現在のファイルの完全なファイル システム パスを取得します。

public:
 property Platform::String ^ Path { Platform::String ^ get(); };
winrt::hstring Path();
public string Path { get; }
var string = storageFile.path;
Public ReadOnly Property Path As String

プロパティ値

String

Platform::String

winrt::hstring

ファイルの完全パス (ファイルにユーザーのファイル システム内のパスがある場合)。

実装

注釈

一部のファイルにはファイル システム パスがない可能性があるため、このプロパティを使用してファイルにアクセスしないでください。 たとえば、ファイルが URI でサポートされている場合や、ファイル ピッカーを使用して選択された場合、ファイルはファイル システム パスを持つ保証はありません。

適用対象