Class IdentityCreationResult
Represents the result of an identity creation operation.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models.Membership
Assembly: Umbraco.Core.dll
Syntax
public class IdentityCreationResult
Constructors
View SourceIdentityCreationResult()
Declaration
public IdentityCreationResult()
Properties
View SourceErrorMessage
Gets or initializes the error message if the operation failed.
Declaration
public string? ErrorMessage { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
InitialPassword
Gets or initializes the initial password generated for the new identity.
Declaration
public string? InitialPassword { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Succeded
Gets or initializes a value indicating whether the identity creation succeeded.
Declaration
public bool Succeded { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceFail(string)
Creates a failed identity creation result with the specified error message.
Declaration
public static IdentityCreationResult Fail(string errorMessage)
Parameters
| Type | Name | Description |
|---|---|---|
| string | errorMessage | The error message describing the failure. |
Returns
| Type | Description |
|---|---|
| IdentityCreationResult | A failed IdentityCreationResult instance. |