Interface IProfileRepository
Provides access to a user profile.
Namespace: EPiServer.Shell.Profile
Assembly: EPiServer.Shell.dll
Version: 10.10.4Syntax
public interface IProfileRepositoryMethods
Delete(String)
Deletes the profile associated with a user name.
Declaration
void Delete(string userName)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | userName | The user name of the profile to delete. | 
GetOrCreateProfile(String)
Gets or creates a user profile.
Declaration
ProfileData GetOrCreateProfile(string userName)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | userName | The user name of the profile to get or create. | 
Returns
| Type | Description | 
|---|---|
| ProfileData | An existing user profile, or a newly created profile if no profile previously existed. | 
GetProfile(String)
Gets an existing user profile.
Declaration
ProfileData GetProfile(string userName)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | userName | The username of the profile to get. | 
Returns
| Type | Description | 
|---|---|
| ProfileData | An existing profile or null if no profile exists. | 
Save(ProfileData)
Saves the given profile to persistence medium.
Declaration
void Save(ProfileData profile)Parameters
| Type | Name | Description | 
|---|---|---|
| ProfileData | profile | The profile data to store. | 
Events
ProfileCreated
Invoked when a profile is created for the first time.
Declaration
event EventHandler<ProfileEventArgs> ProfileCreatedEvent Type
| Type | Description | 
|---|---|
| System.EventHandler<ProfileEventArgs> | 
