Class UserDeleteResult
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
DirectoryDeletedboolTrue when the user was also deleted from the external directory.
DirectoryErrorstringWhen 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.
RemovedTeamCountintThe 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
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
RemovedTeamCount
The number of teams the user was removed from.
public int RemovedTeamCount { get; init; }