Which code segment should you use?

You are developing a Windows Store app. The app will receive push notifications from the Windows
Push Notification Services (WNS).
You store the secret for authentication in a variable named encodedSecret. You store the security ID
for authentication in a variable named encodedSid. Both variables contain string data encoded for
use in a Uniform Resource Identifier (URI).
You create a WebClient object named client.
You need to use the client object to retrieve an OAuth token as a string and to store the string in a
variable named response.
Which code segment should you use?

You are developing a Windows Store app. The app will receive push notifications from the Windows
Push Notification Services (WNS).
You store the secret for authentication in a variable named encodedSecret. You store the security ID
for authentication in a variable named encodedSid. Both variables contain string data encoded for
use in a Uniform Resource Identifier (URI).
You create a WebClient object named client.
You need to use the client object to retrieve an OAuth token as a string and to store the string in a
variable named response.
Which code segment should you use?

A.
Option A

B.
Option B

C.
Option C

D.
Option D

Explanation:
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh868252.aspx



Leave a Reply 0

Your email address will not be published. Required fields are marked *