Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    IdentityCreationResult()

    Declaration
    public IdentityCreationResult()

    Properties

    View Source

    ErrorMessage

    Gets or initializes the error message if the operation failed.

    Declaration
    public string? ErrorMessage { get; init; }
    Property Value
    Type Description
    string
    View Source

    InitialPassword

    Gets or initializes the initial password generated for the new identity.

    Declaration
    public string? InitialPassword { get; init; }
    Property Value
    Type Description
    string
    View Source

    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 Source

    Fail(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.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX