好物优选点击查看详情 京东购买

暂无内容

java读取nas文件

文件/文件夹选择器需要授予初始权限,一旦授予,就将文件添加到将来的访问列表中 .

private async void ChooseFile()

FileOpenPicker openPicker = new FileOpenPicker();

openPicker.ViewMode = PickerViewMode.Thumbnail;

openPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;

openPicker.FileTypeFilter.Add(“.wmv”);

openPicker.FileTypeFilter.Add(“.jpeg”);

openPicker.FileTypeFilter.Add(“.png”);

StorageFile file = await openPicker.PickSingleFileAsync();

if (file != null)

Windows.Storage.AccessCache.StorageApplicationPermissions.FutureAccessList.Add(file, “Test”);

else

// The file picker was dismissed with no file selected to save

如何获取文件和播放媒体

foreach (AccessListEntry itm in StorageApplicationPermissions.FutureAcces

原文链接:https://blog.csdn.net/weixin_35773916/article/details/114628661?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522171836984016800211567911%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=171836984016800211567911&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-16-114628661-null-null.nonecase&utm_term=NAS%E7%A1%AC%E7%9B%98

© 版权声明
THE END
喜欢就支持一下吧
点赞6 分享