Show / Hide Table of Contents

ApplyCurrentAccessCode Method

ApplyCurrentAccessCode(ReadOnlySpan<byte>)

Adds the access code currently protecting the configuration to the command. This is needed to apply a new configuration to a write-protected slot.

C#
public void ApplyCurrentAccessCode(ReadOnlySpan<byte> accessCode)

Parameters

Type Name Description
ReadOnlySpan<byte> accessCode

The current access code to the configurable slot.

Remarks

If the configurable slot is protected by an access code, that code must be supplied by the caller through this method. If the intention is to retain the access code and leave its value unchanged, the SetAccessCode(ReadOnlySpan<byte>) function must also be called. Failure to do so will result in the access code being removed from the slot, effectively making it unprotected.

In this article
Back to top Generated by DocFX