November Happy Hour will be moved to Thursday December 5th.

Class ContentFactoryExtensions

Extension methods for IContentFactory instances.

Inheritance
System.Object
ContentFactoryExtensions
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.Construction
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public static class ContentFactoryExtensions

Methods

CreateContent(IContentFactory, ContentType)

Creates an IContent instance and populates the instance with properties according to the passed in ContentType.

Declaration
public static IContent CreateContent(this IContentFactory contentFactory, ContentType contentType)
Parameters
Type Name Description
IContentFactory contentFactory

The content factory this method extends

ContentType contentType

The type of content that should be created.

Returns
Type Description
IContent

A new IContent instance.