Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IMembershipUserService

    Defines part of the UserService, which is specific to methods used by the membership provider.

    Namespace: Umbraco.Cms.Core.Services
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IMembershipUserService : IMembershipMemberService<IUser>, IService
    Remarks

    Idea is to have this is an isolated interface so that it can be easily 'replaced' in the membership provider impl.

    Methods

    View Source

    CreateUserWithIdentity(String, String)

    Creates and persists a new User

    Declaration
    IUser CreateUserWithIdentity(string username, string email)
    Parameters
    Type Name Description
    System.String username

    Username of the User to create

    System.String email

    Email of the User to create

    Returns
    Type Description
    IUser IUser
    Remarks

    The user will be saved in the database and returned with an Id. This method is convenient when you need to perform operations, which needs the Id of the user once its been created.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • CreateUserWithIdentity(String, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX