共用方式為


DevicePicker.PickSingleDeviceAsync 方法

定義

多載

PickSingleDeviceAsync(Rect)

顯示選擇器 UI 並傳回選取的裝置;不需要您註冊事件。 選擇器會從指定矩形的邊緣飛出。

PickSingleDeviceAsync(Rect, Placement)

顯示選擇器 UI 並傳回選取的裝置;不需要您註冊事件。 選擇器會從指定矩形的指定邊緣飛出。

PickSingleDeviceAsync(Rect)

顯示選擇器 UI 並傳回選取的裝置;不需要您註冊事件。 選擇器會從指定矩形的邊緣飛出。

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)

參數

selection
Rect

您希望選擇器從中飛出的矩形。

傳回

使用者選取的裝置。

屬性

另請參閱

適用於

PickSingleDeviceAsync(Rect, Placement)

顯示選擇器 UI 並傳回選取的裝置;不需要您註冊事件。 選擇器會從指定矩形的指定邊緣飛出。

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)

參數

selection
Rect

您希望選擇器從中飛出的矩形。

placement
Placement

要從中飛出選擇器的矩形邊緣。

傳回

選取的裝置。

屬性

另請參閱

適用於