Reads the chip-level card serial number. This is a 7-byte value that is unique for each card.

Namespace: CardWerk.SmartCard.CardModule.DESFire
Assembly: CardWerk.SmartCard.CardModule.DESFire (in CardWerk.SmartCard.CardModule.DESFire.dll)

Public Function GetCardUID() As Byte()
This language is not supported or no code example is available.
public byte[] GetCardUID()
This language is not supported or no code example is available.
public:  
array< Byte >^ GetCardUID()
This language is not supported or no code example is available.
public function GetCardUID() : byte[];
This language is not supported or no code example is available.

Return Value

Type: byte[]

on-card GetUID.

Exception type Condition

ArgumentNullException

Thrown when one or more required arguments are null.

This requires authentication under any key prior to processing this command. Use this method if card uses random UIDs.

.NET Framework

Supported in: 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

.NET Core

Supported in: 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0

.NET Standard

Supported in: 2.0