共用方式為


AppCaptureMetadataWriter.StartInt32State 方法

定義

加入新的雙精度浮點數中繼資料狀態。

public:
 virtual void StartInt32State(Platform::String ^ name, int value, AppCaptureMetadataPriority priority) = StartInt32State;
void StartInt32State(winrt::hstring const& name, int const& value, AppCaptureMetadataPriority const& priority);
public void StartInt32State(string name, int value, AppCaptureMetadataPriority priority);
function startInt32State(name, value, priority)
Public Sub StartInt32State (name As String, value As Integer, priority As AppCaptureMetadataPriority)

參數

name
String

Platform::String

winrt::hstring

中繼資料狀態的名稱。

value
Int32

int

中繼資料狀態的值。

priority
AppCaptureMetadataPriority

AppCaptureMetadataPriority列舉的成員,指定中繼資料專案的相對重要性。 當達到累積中繼資料的已配置儲存空間限制時,系統會使用這個值和中繼資料專案的存留期,判斷應該先清除哪些中繼資料專案。

備註

系統會將中繼資料狀態與啟動狀態的時間範圍建立關聯,以及其值變更的時間範圍,或是停止狀態,並呼叫 StopAllStates。 若要儲存套用至即時時間點的整數值,請使用 AddInt32Event

適用於