Class PersonalizedViewSettings
Contains personalized settings for a view for a certain user.
Inheritance
Inherited Members
Namespace: EPiServer.Shell.ViewComposition
Assembly: EPiServer.Shell.dll
Version: 8.11.0Syntax
public class PersonalizedViewSettings
Constructors
PersonalizedViewSettings()
Initializes a new instance of the Personalized
Declaration
public PersonalizedViewSettings()
Properties
CustomizedContainers
Gets or sets the containers that has been customized by the user.
Declaration
public IList<IContainer> CustomizedContainers { get; }
Property Value
Type | Description |
---|---|
System. |
The containers that has been customized by the user. |
Id
Id for the personalized settings.
Declaration
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System. |
UserName
Gets or sets the username for these settings.
Declaration
public string UserName { get; set; }
Property Value
Type | Description |
---|---|
System. |
The username for these settings. |
ViewName
Gets or sets the name of the view.
Declaration
public string ViewName { get; set; }
Property Value
Type | Description |
---|---|
System. |
The name of the view. |
Methods
FindComponentById(IEnumerable<PersonalizedViewSettings>, Guid)
Locates a Component
Declaration
public static IComponent FindComponentById(IEnumerable<PersonalizedViewSettings> viewSettings, Guid componentId)
Parameters
Type | Name | Description |
---|---|---|
System. |
viewSettings | The collection of view settings in which to search for the component. |
System. |
componentId | The id of the component to locate. |
Returns
Type | Description |
---|---|
IComponent | A Component |
FindComponentById(IEnumerable<PersonalizedViewSettings>, Guid, out PersonalizedViewSettings)
Locates a Component
Declaration
public static IComponent FindComponentById(IEnumerable<PersonalizedViewSettings> viewSettings, Guid componentId, out PersonalizedViewSettings settings)
Parameters
Type | Name | Description |
---|---|---|
System. |
viewSettings | The collection of view settings in which to search for the component. |
System. |
componentId | The id of the component to locate. |
Personalized |
settings | The view settings in which the component was found. |
Returns
Type | Description |
---|---|
IComponent | A Component |
FindComponentById(Guid, out IContainer)
Finds the container that matches the given id or null if no matching container exists.
Declaration
public IComponent FindComponentById(Guid id, out IContainer personalizationContainer)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The id to match. |
IContainer | personalizationContainer | The personalization container that the component exists in if one exists. |
Returns
Type | Description |
---|---|
IComponent | The component that matches the given id or null if no matching container exists. |
GetComponent(IEnumerable<IComponent>, Guid)
Returns a ComponentstoredComponentId
from the containers
collection
Declaration
public static IComponent GetComponent(IEnumerable<IComponent> containers, Guid storedComponentId)
Parameters
Type | Name | Description |
---|---|---|
System. |
containers | The containers. |
System. |
storedComponentId | The stored component id to search for |
Returns
Type | Description |
---|---|
IComponent |