Table of Contents

Method RemoveAsync

Namespace
MailFathom.Application.Portraits
Assembly
MailFathom.Application.dll

RemoveAsync(CancellationToken)

Removes the picture the signed-in person is drawn by.

public Task<PortraitChange> RemoveAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<PortraitChange>

Whether this deployment holds a record for the caller, and the sentence saying why where the change was refused: who holds the portrait where it is not theirs to change, or which settings policy holds their whole record where this build does not read it.

Remarks

Nothing else about the person is touched, and the removal is silent about whether there was one to remove. The link goes before the file does, for the reason a replacement orders its steps.

Exceptions

PrincipalNotAuthorizedException

Thrown when the caller acts for no user, or its grant omits ProfileWrite.