MifareCard Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A Mifare card class Supports Mifare Classic 1K and 4K Also supports Mifare Plus 2K and 4K operating in SL1
public class MifareCard
type MifareCard = class
Public Class MifareCard
- Inheritance
-
MifareCard
Mifare |
Constructor for Mifarecard |
Block |
The block number to authenticate or read or write |
Capacity |
The storage capacity |
Command |
The command to execute on the card |
Data |
The Data which has been read or to write for the specific block |
Default |
Default block Key A for NDEF card |
Default |
Default Mifare Application Directory block Key A for NDEF card The MAD is in the first sector on all cards and also sector 16 on 2K and 4K cards |
Default |
Default Key A |
Default |
Default Key B |
KeyA |
Key A Used for encryption/decryption |
KeyB |
Key B Used for encryption/decryption |
Reselect |
Reselect the card after a card command fails After an error, the card will not respond to any further commands until it is reselected. If this property is false, the caller is responsible for calling ReselectCard when RunMifareCardCommand returns an error (-1). |
Serial |
UUID is the Serial Number, called MAC sometimes |
Target |
The tag number detected by the reader, only 1 or 2 |
Block |
Get the block access information |
Block |
Determine the block group corresponding to a block number |
Block |
Determine the sector number corresponding to a particular block number |
Encode |
Encode with default value the access sector and tailer blocks |
Encode |
Encode the desired access for the full sector including the block tailer |
Encode |
Obsolete.
Encode the desired access for the full sector including the block tailer |
Encode |
Get the sector tailer bytes for a specific access sector configuration |
Encode |
Encode the sector tailer access type for a specific block |
Erase |
Erase one sector |
Format |
Format the entire card to NDEF |
Format |
Format a portion of the card to NDEF |
Get |
Get the number of blocks for a specific sector |
Get |
Get the number of blocks for a specific sector |
Get |
Get the number of sectors |
Is |
Check if the card is formatted to NDEF |
Is |
Is it a block sector? |
Reselect |
Select the card. Needed if authentication or read/write failed |
Run |
Run the last setup command. In case of reading bytes, they are automatically pushed into the Data property |
Run |
Run the last setup command. In case of reading bytes, they are automatically pushed into the Data property |
Sector |
Get the sector tailer access information |
Sector |
Determine the first block number of a specified sector and block group |
Set |
From the ATQA and SAK data find common card capacity |
Try |
Try to read a NDEF Message from a Mifare card |
Write |
Perform a write using the 16 bytes present in Data on a specific block |
Write |
Write an NDEF Message |
Product | Versions |
---|---|
.NET IoT Libraries | 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0 |