Hot Area:

HOTSPOT
You have the following code:

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Hot Area:

HOTSPOT
You have the following code:

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
Hot Area:

Answer:

Explanation:
Box 1: No
The SuggestedStartLocation gets or sets the initial location where the file open picker looks for files to present
to the user. Here is just gets the location.Box 2: No
FileOpenPicker.PickMultipleFilesAndContinue method shows the file picker so that the user can pick multiple
files, deactivating and the app and reactivating it when the operation is complete.
To get asynchcronous execution use the PickMultipleFilesAsync method.
Box 3: Yes
The line filePicker.ViewMode = PickerViewMode.List specifies that a list will be accepted.

https://msdn.microsoft.com/library/windows/apps/br207847



Leave a Reply 8

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


Sunny

Sunny

First should be Yes and last should be No. Right?

Andriano

Andriano

No, No, No.
Seconds and following times the file picker ignores SuggestedStartLocation and uses user’s last choice.

GP

GP

first option
No, Why? check msdn
https://docs.microsoft.com/en-us/uwp/api/windows.storage.pickers.fileopenpicker

The SuggestedStartLocation is not always used as the start location for the file picker. To give the user a sense of consistency, the file picker remembers the last location that the user navigated to and will generally start at that location.”

second option
No,

third option
Yes

Andriano

Andriano

third is not Yes – Add accepts an item, not a list of items.

Lord Vader

Lord Vader

no no no

Lord vader

Lord vader

openPicker.FileTypeFilter.Add(“.jpg”);
openPicker.FileTypeFilter.Add(“.jpeg”);
openPicker.FileTypeFilter.Add(“.png”);

Doesn’t accept a list. It accepts single string objects

Value
IList
A fileExtensionVector object that contains a collection of file types (file name extensions) , such as “.doc” and “.png”. File name extensions are stored in this array as string objects.