Show / Hide Table of Contents

DeleteCredential Method

DeleteCredential(ReadOnlyMemory<byte>, string)

Remove a credential.

C#
public void DeleteCredential(ReadOnlyMemory<byte> managementKey, string label)

Parameters

Type Name Description
ReadOnlyMemory<byte> managementKey

The secret used to authenticate to the application prior to adding or removing credentials. It must be exactly 16 bytes long (see ValidManagementKeyLength).

string label

The label of the credential to be deleted. The string must meet the same requirements as Label.

Exceptions

Type Condition
InvalidOperationException

The credential was not found.

SecurityException

Authentication with the management key failed.

Remarks

There is a limit of 8 attempts to authenticate with the management key before the management key is blocked. Once the management key is blocked, the application must be reset before performing operations which require authentication with the management key (such as adding credentials, deleting credentials, and changing the management key). To reset the application, see ResetApplication(). Supplying the correct management key before the management key is blocked will reset the retry counter to 8.

In this article
Back to top Generated by DocFX