DevicePicker.PickSingleDeviceAsync Method

Definition

Overloads

PickSingleDeviceAsync(Rect)

Shows the picker UI and returns the selected device; does not require you to register for an event. The picker flies out from the edge of the specified rectangle.

PickSingleDeviceAsync(Rect, Placement)

Shows the picker UI and returns the selected device; does not require you to register for an event. The picker flies out from the specified edge of the specified rectangle.

PickSingleDeviceAsync(Rect)

Shows the picker UI and returns the selected device; does not require you to register for an event. The picker flies out from the edge of the specified rectangle.

public:
 virtual IAsyncOperation<DeviceInformation ^> ^ PickSingleDeviceAsync(Rect selection) = PickSingleDeviceAsync;
/// [Windows.Foundation.Metadata.Overload("PickSingleDeviceAsync")]
IAsyncOperation<DeviceInformation> PickSingleDeviceAsync(Rect const& selection);
[Windows.Foundation.Metadata.Overload("PickSingleDeviceAsync")]
public IAsyncOperation<DeviceInformation> PickSingleDeviceAsync(Rect selection);
function pickSingleDeviceAsync(selection)
Public Function PickSingleDeviceAsync (selection As Rect) As IAsyncOperation(Of DeviceInformation)

Parameters

selection
Rect

The rectangle from which you want the picker to fly out.

Returns

The device selected by the user.

Attributes

See also

Applies to

PickSingleDeviceAsync(Rect, Placement)

Shows the picker UI and returns the selected device; does not require you to register for an event. The picker flies out from the specified edge of the specified rectangle.

public:
 virtual IAsyncOperation<DeviceInformation ^> ^ PickSingleDeviceAsync(Rect selection, Placement placement) = PickSingleDeviceAsync;
/// [Windows.Foundation.Metadata.Overload("PickSingleDeviceAsyncWithPlacement")]
IAsyncOperation<DeviceInformation> PickSingleDeviceAsync(Rect const& selection, Placement const& placement);
[Windows.Foundation.Metadata.Overload("PickSingleDeviceAsyncWithPlacement")]
public IAsyncOperation<DeviceInformation> PickSingleDeviceAsync(Rect selection, Placement placement);
function pickSingleDeviceAsync(selection, placement)
Public Function PickSingleDeviceAsync (selection As Rect, placement As Placement) As IAsyncOperation(Of DeviceInformation)

Parameters

selection
Rect

The rectangle from which you want the picker to fly out.

placement
Placement

The edge of the rectangle from which you want the picker to fly out.

Returns

The device selected.

Attributes

See also

Applies to