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

Interface IComponentMatcher

Used to match components in a hierarchy. Both MatchesComponent(IComponent) for the IComponent and MatchesContainer(IContainer) for the parent IContainer must match in order to get a match.

Namespace: EPiServer.Shell.ViewComposition
Assembly: EPiServer.Shell.dll
Version: 7.19.2
Syntax
public interface IComponentMatcher : IContainerMatcher

Methods

MatchesComponent(IComponent)

Answers if the given component is a match.

Declaration
bool MatchesComponent(IComponent component)
Parameters
Type Name Description
IComponent component

The component to match.

Returns
Type Description
System.Boolean

true if the component is a match; otherwise false.

Extension Methods