FileOpenPickerUI.CanAddFile(IStorageFile) 方法

定義

指出是否可以將指定的檔案新增至使用者選擇的檔案清單。

public:
 virtual bool CanAddFile(IStorageFile ^ file) = CanAddFile;
bool CanAddFile(IStorageFile const& file);
public bool CanAddFile(IStorageFile file);
function canAddFile(file)
Public Function CanAddFile (file As IStorageFile) As Boolean

參數

file
IStorageFile

要測試的檔案。

傳回

Boolean

bool

True 是表示 如果檔案可以新增至檔案選擇器 UI;否則為 false。

適用於

另請參閱