共用方式為


ClaimedMagneticStripeReader 類別

定義

表示宣告的磁條讀取器。

public ref class ClaimedMagneticStripeReader sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ClaimedMagneticStripeReader final : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ClaimedMagneticStripeReader final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ClaimedMagneticStripeReader : System.IDisposable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ClaimedMagneticStripeReader : System.IDisposable
Public NotInheritable Class ClaimedMagneticStripeReader
Implements IDisposable
繼承
Object Platform::Object IInspectable ClaimedMagneticStripeReader
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

當 ClaimReaderAsync方法完成時,就會建立這個物件。

版本歷程記錄

Windows 版本 SDK 版本 新增值
1809 17763 已關閉

屬性

DataEncryptionAlgorithm

取得或設定將用來加密追蹤資料的 MagneticStripeReaderEncryptionAlgorithms

DeviceId

取得所宣告磁條讀取器的 DeviceInformation.Id

IsDecodeDataEnabled

指出是否要從最近撥動的卡片提供未經處理或解碼的資料。

IsDeviceAuthenticated

指出裝置是否已通過驗證。

IsDisabledOnDataReceived

取得或設定布林值,指出從最近撥動卡片接收資料之後,是否停用磁條讀取器。

IsEnabled

指出磁條讀取器是否準備好接收資料事件。

IsTransmitSentinelsEnabled

指出追蹤資料是否包含 start 和 end sentinel 值。

TracksToRead

取得或設定應用程式想要在卡片撥動之後接收的追蹤資料。

方法

AuthenticateDeviceAsync(Byte[])

將裝置置於已驗證的狀態。

Close()

釋放磁條讀取器的獨佔宣告。

DeAuthenticateDeviceAsync(Byte[])

將裝置放入未經驗證的狀態。

DisableAsync()

ClaimedMagneticStripeReader 放入無法接收資料事件的狀態。

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

EnableAsync()

取得磁條讀取器進入就緒狀態,以接收資料事件。

ResetStatisticsAsync(IIterable<String>)

針對可重設的所有統計資料,將指定的統計資料重設為零。

RetainDevice()

保留磁條讀取器的獨佔宣告。

RetrieveDeviceAuthenticationDataAsync()

從裝置擷取挑戰權杖。

SetErrorReportingType(MagneticStripeReaderErrorReportingType)

設定 ErrorOccurred 事件要報告的錯誤類型。

UpdateKeyAsync(String, String)

提供裝置的新加密金鑰。

UpdateStatisticsAsync(IIterable<KeyValuePair<String,String>>)

更新指定的統計資料。

事件

AamvaCardDataReceived

發生于撥動汽車卡時。

BankCardDataReceived

發生于撥動信用卡時。

Closed

當 ClaimedMagneticStripeReader關閉時所引發的事件。

ErrorOccurred

當磁條讀取器在讀取卡片時偵測到錯誤時發生。

ReleaseDeviceRequested

發生于裝置取得釋放其獨佔宣告的要求時。

VendorSpecificDataReceived

發生于撥動廠商特定的卡片時。

適用於

另請參閱