DeviceInformationCollectionの列挙はrange-based forでもできた。
DeviceInformation::FindAllAsync(DeviceClass::AudioRender)->Completed
= ref new AsyncOperationCompletedHandler<DeviceInformationCollection^>(
[=] (IAsyncOperation<DeviceInformationCollection ^>^ asyncInfo, AsyncStatus asyncStatus)
{
if(asyncStatus == AsyncStatus::Completed)
{
DeviceInformationCollection ^col = asyncInfo->GetResults();
for(auto i : col)
{
this->Information_->Text += i->Name + L"\n";
}
}
},Platform::CallbackContext::Same
);