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

Class BlockType

Represents the definition of a block. Used to create instances of BlockData.

Inheritance
System.Object
BlockType
Implements
System.IComparable
System.IComparable<ContentType>
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public class BlockType : ContentType, IComparable, IComparable<ContentType>, IReadOnly<BlockType>, IReadOnly

Constructors

BlockType()

Initializes a new instance of the BlockType class.

Declaration
public BlockType()

BlockType(Int32, Guid, String, String, Boolean, Int32)

Initializes a new instance of the BlockType class.

Declaration
public BlockType(int id, Guid guid, string name, string description, bool isAvailable, int sortOrder)
Parameters
Type Name Description
System.Int32 id

The id.

System.Guid guid

The GUID based identifier.

System.String name

The name.

System.String description

The description.

System.Boolean isAvailable

if set to true it will be available in edit mode.

System.Int32 sortOrder

The sort order.

Methods

CreateWritableClone()

Creates a writable clone of this object.

Declaration
public BlockType CreateWritableClone()
Returns
Type Description
BlockType

A clone of this object that is writable.

Implements

System.IComparable
System.IComparable<T>

Extension Methods