DevicePicker.PickSingleDeviceAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
希望选取器从中飞出矩形的边缘。
返回
所选设备。
- 属性