Interface IProfileRepository
Provides access to a user profile.
Namespace: EPiServer.Shell.Profile
Assembly: EPiServer.Shell.dll
Version: 8.11.0Syntax
public interface IProfileRepository
Methods
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> ProfileCreated
Event Type
Type | Description |
---|---|
System.EventHandler<ProfileEventArgs> |