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: 11.20.7
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