Set the access condition for a block within a sector. This is a helper method to help
prepare access bits. It does not access the card. You will still need to copy the access
bits to the right location - byte[6..8] - within the sector trailer of the appropriate
sector.
Namespace:
CardWerk.SmartCard.CardModule.MifareClassic
Assembly: CardWerk.SmartCard.CardModule.MifareClassic (in CardWerk.SmartCard.CardModule.MifareClassic.dll)
Public Shared Sub SetAccessCondition( _
ByRef accessBits As Byte(), _
ByVal ac As Byte, _
ByVal block As Integer _
)
This language is not supported or no code example is available.
public static void SetAccessCondition(
ref byte[] accessBits,
byte ac,
int block
)
This language is not supported or no code example is available.
public:
static void SetAccessCondition(
array< Byte >^& accessBits,
Byte ac,
int block
)
This language is not supported or no code example is available.
public static function SetAccessCondition(
accessBits : byte[],
ac : byte,
block : int
);
This language is not supported or no code example is available.
Parameters
-
accessBits
-
Type: byte[]
[in,out] 3-byte array with access conditions for sector data,
keys and access conditions.
-
ac
-
Type: byte
The AC.
-
block
-
Type: int
block number between 0 and 3. This is the block that will be
affected by the access condition.
.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