Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Class SiteDefinitionRepositoryExtensions

Extends ISiteDefinitionRepository with convenient methods

Inheritance
System.Object
SiteDefinitionRepositoryExtensions
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
public static class SiteDefinitionRepositoryExtensions

Methods

Get(ISiteDefinitionRepository, String)

Gets the SiteDefinition with specified name.

Declaration
public static SiteDefinition Get(this ISiteDefinitionRepository siteDefinitionRepository, string name)
Parameters
Type Name Description
ISiteDefinitionRepository siteDefinitionRepository

The extended site definition repository

System.String name

The name.

Returns
Type Description
SiteDefinition

The site definition with specified name