8. Migration Guide to the .NET Framework 4.5:
http://msdn.microsoft.com/en-us/library/ff657133(v=VS.110).aspx
Application Compatibility in the .NET Framework 4.5
http://msdn.microsoft.com/en-us/library/hh367887(v=VS.110).aspx
20. DllImport "avicap32.dll" "capCreateCaptureWindow"
static extern int
string int
int int int int
int int
DllImport "avicap32.dll"
static extern bool
int
MarshalAs UnmanagedType ref string
int
MarshalAs UnmanagedType ref string
int
// more and more of the same
21. using Windows.Media.Capture;
var new CameraCaptureUI
new Size
var await CameraCaptureUIMode
if
var new BitmapImage
await FileAccessMode
33. To handle the exception in C# or Visual Basic, you use a try/catch block
just as you do with synchronous code today:
var title;
var feedUri = new Uri("http://www.devhawk.com/rss.xml");
var client = new
Windows.Web.Syndication.SyndicationClient();
try
{
var feed = await client.RetrieveFeedAsync(feedUri);
title = feed.Title.Text;
}
catch (Exception ex)
{
// An exception occurred from the async operation
}