A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Class DisplayResolutionService

Inheritance
System.Object
DisplayResolutionService
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(typeof(DisplayResolutionService), Lifecycle = ServiceInstanceScope.Singleton)]
public class DisplayResolutionService

Constructors

DisplayResolutionService()

Initializes a new instance of the DisplayResolutionService class.

Declaration
public DisplayResolutionService()

Properties

Resolutions

Gets all registered resolutions.

Declaration
public virtual IEnumerable<IDisplayResolution> Resolutions { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<IDisplayResolution>

Methods

Add(IDisplayResolution)

Adds a display resolution to the service.

Declaration
public void Add(IDisplayResolution displayResolution)
Parameters
Type Name Description
IDisplayResolution displayResolution

Extension Methods