如何检查WP8手机是否有外置存储(SD)?
答案 0 :(得分:1)
看起来您正在寻找的功能可能在Microsoft.Phone.Storage命名空间中可用。请记住,如果找不到设备,则返回的值将为null。
var storageAssets = await ExternalStorage.GetExternalStorageDevicesAsync();
ExternalStorageDevice item = storageAssets.FirstOrDefault();
此处的信息:
http://msdn.microsoft.com/en-US/library/windowsphone/develop/microsoft.phone.storage(v=vs.105).aspx
http://dotnet.dzone.com/articles/using-local-storage-windows
微软的好例子: