ClaimedBarcodeScanner.SetActiveProfileAsync(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定條碼掃描器上的使用中設定檔。
重要
此 API 僅適用于適用于 UWP) 的 Windows 行動裝置 (系列組建 10240 和組建 10586。 此 API 不適用於 Windows Desktop 裝置系列、其他裝置系列,也不適用於 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
在裝置上設定的設定檔名稱。
傳回
方法完成時不會傳回任何物件或值。
- 屬性
備註
輸入參數必須符合其中一個支援的設定檔。 如需詳細資訊,請參閱 GetSupportedProfiles 或 IsProfileSupported。
條碼掃描器可以支援掃描以外的許多功能,例如焦點長度和掃描持續時間。 這些功能通常會透過設定或屬性公開,而且複雜裝置上最多可有 100 個。 簡化掃描器設定的模型,一或多個設定檔會向應用程式開發人員公開,每個設定檔都包含一或多個 OEM 定義的設定。