Table of Contents

Class UserDeleteResult

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

Result of DeleteUserAsync(string, bool, CancellationToken). The local delete (all team memberships and the user record) has always completed when this is returned — a failure there throws instead.

public sealed record UserDeleteResult : IEquatable<UserDeleteResult>
Inheritance
UserDeleteResult
Implements
Inherited Members

Constructors

UserDeleteResult(bool, string, int)

Result of DeleteUserAsync(string, bool, CancellationToken). The local delete (all team memberships and the user record) has always completed when this is returned — a failure there throws instead.

public UserDeleteResult(bool DirectoryDeleted = false, string DirectoryError = null, int RemovedTeamCount = 0)

Parameters

DirectoryDeleted bool

True when the user was also deleted from the external directory.

DirectoryError string

When directory deletion was requested but failed (or the user was not linked to a directory user), the reason — the local delete is not rolled back.

RemovedTeamCount int

The number of teams the user was removed from.

Properties

DirectoryDeleted

True when the user was also deleted from the external directory.

public bool DirectoryDeleted { get; init; }

Property Value

bool

DirectoryError

When directory deletion was requested but failed (or the user was not linked to a directory user), the reason — the local delete is not rolled back.

public string DirectoryError { get; init; }

Property Value

string

RemovedTeamCount

The number of teams the user was removed from.

public int RemovedTeamCount { get; init; }

Property Value

int