ClaimedBarcodeScanner.SetActiveProfileAsync(String) 方法

定义

设置条形码扫描仪上的活动配置文件。

重要

此 API 仅适用于适用于 UWP) 的 Windows 移动版设备系列的内部版本 10240 和内部版本 10586 (Windows Mobile 扩展。 此 API 不适用于 Windows 桌面设备系列,不适用于其他设备系列,也不适用于 10240 和 10586 以外的 Windows 移动版内部版本。 在操作系统 (操作系统) 调用时,此 API 的行为是未定义的。 有关设备系列的详细信息,请参阅 设备系列扩展 SDK 和 API 协定

public:
 virtual IAsyncAction ^ SetActiveProfileAsync(Platform::String ^ profile) = SetActiveProfileAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction SetActiveProfileAsync(winrt::hstring const& profile);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction SetActiveProfileAsync(string profile);
function setActiveProfileAsync(profile)
Public Function SetActiveProfileAsync (profile As String) As IAsyncAction

参数

profile
String

Platform::String

winrt::hstring

在设备上设置的配置文件的名称。

返回

方法完成后,不会返回任何对象或值。

属性

注解

输入参数必须与受支持的配置文件之一匹配。 有关详细信息,请参阅 GetSupportedProfilesIsProfileSupported

条形码扫描仪可以支持扫描以外的许多功能,例如焦距和扫描持续时间。 这些功能通常通过设置或属性公开,在复杂设备上可能多达 100 个。 简化扫描程序配置的模型,向应用程序开发人员公开一个或多个配置文件,每个配置文件包含一个或多个 OEM 定义的设置。

适用于

另请参阅