UltralightCard Class
Definition
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 Ultralight card class
public class UltralightCard
type UltralightCard = class
Public Class UltralightCard
- Inheritance
-
UltralightCard
Constructors
UltralightCard(CardTransceiver, Byte) |
Constructor for Ultralight |
Fields
DefaultPassword |
Default password used for write and read |
Properties
AuthenticationKey |
Authentication key |
BlockNumber |
The block number to authenticate or read or write |
Command |
The command to execute on the card |
Counter |
The counter to read or increment |
Data |
The Data which has been read or to write for the specific block |
NdefCapacity |
The NDEF capacity in bytes |
NumberBlocks |
Get the number of blocks for a specific sector |
ReselectAfterError |
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 RunUltralightCommand returns an error (-1). |
SerialNumber |
UUID is the Serial Number, called MAC sometimes |
Target |
The tag number detected by the reader, only 1 or 2 |
UltralightCardType |
The type of card |
Methods
FormatNdef(ReadOnlySpan<Byte>) |
Format the Card to NDEF |
GetCounter(Byte) |
Get the counter value |
GetSignature() |
Get the chip signature |
GetVersion() |
Get the version data |
IncreaseCounter(Byte, Int32) |
Increase a counter by a specified amount |
IsFormattedNdef() |
Check if the card formated to NDEF |
IsPageReadOnly(Byte) |
Check if a page is read only |
IsUltralightCard(UInt16, Byte) |
Check if this is a Ultralight card type |
ProcessAuthentication(ReadOnlySpan<Byte>) |
Process authentication |
ReadFast(Byte, Byte) |
Read at once multiple pages blocks of 4 bytes |
ReselectCard() |
Select the card. Needed if authentication or read/write failed |
RunUltralightCommand() |
Run the last setup command. In case of reading bytes, they are automatically pushed into the Data property |
SetPassword(ReadOnlySpan<Byte>) |
Set the password, the AuthenticationKey is used as the old password |
TryGetConfiguration(Configuration) |
Try to get the configuration |
TryReadNdefMessage(NdefMessage) |
Try to read a NDEF Message from a Mifare card |
WriteConfiguration(Configuration) |
Write the configuration |
WriteDataBlock(Byte) |
Perform a write using the 16 bytes present in Data on a specific block |
WriteNdefMessage(NdefMessage) |
Write an NDEF Message |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for