FolderPicker.FileTypeFilter プロパティ

定義

フォルダー ピッカーに表示されるファイルの種類のコレクションを取得します。

public:
 property IVector<Platform::String ^> ^ FileTypeFilter { IVector<Platform::String ^> ^ get(); };
IVector<winrt::hstring> FileTypeFilter();
public IList<string> FileTypeFilter { get; }
var iVector = folderPicker.fileTypeFilter;
Public ReadOnly Property FileTypeFilter As IList(Of String)

プロパティ値

IVector<String>

IList<String>

IVector<Platform::String>

IVector<winrt::hstring>

".doc" や ".png" などのファイルの種類 (ファイル名拡張子) のコレクションを含む FileExtensionVector オブジェクト。 ファイル名拡張子は、この配列に 文字列 オブジェクトとして格納されます。

ファイル ピッカーのサンプルでは、ファイル ピッカーで任意の種類のファイルを表示する方法を示します。

FolderPicker folderPicker = new FolderPicker();
folderPicker.SuggestedStartLocation = PickerLocationId.Desktop;
folderPicker.FileTypeFilter.Add("*");

適用対象

こちらもご覧ください