Interface IMembershipUserService
Defines part of the UserService, which is specific to methods used by the membership provider.
Namespace: Umbraco.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 SourceCreateUserWithIdentity(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 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.