Home » Microsoft » 70-357 » Which of the following methods should you use?
You are developing a Universal Windows Platform (UWP) app.
The app must be available on Windows Phone, Windows tablet devices, and Xbox.
When the app is running on a device, you need to determine which members of a specific class you can use.
Which of the following methods should you use?
A. ApiInformation.IsPropertyPresent
B. UserInformation.NameAccessAllowed
C. Selector.GetIsSelectionActive
D. AppExtensionCatalog.FindAllAsync
E. ApiInformation.IsMethodPresent
F. Version.TryParse
Correct Answer: D
Explanation/Reference:
The AppExtensionCatalog class represents a device. This class allows access to well-known device properties as well as additional properties specified during device enumeration. A Successful completion of FindAllAsync results in a DeviceInformationCollection containing DeviceInformation objects.
Reference: https://docs.microsoft.com/en-us/uwp/api/windows.devices.enumeration.deviceinformation