C# Класс Rock.Model.BlockService

The data access/service class for Rock.Model.Block entity type objects that extends the functionality of Rock.Data.Service
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetByBlockTypeId ( int blockTypeId ) : IQueryable

Returns an enumerable collection of Rock.Model.Block">Blocks that implement a specific

GetByLayout ( int layoutId ) : IQueryable

Returns an enumerable collection of Rock.Model.Block">Blocks that are implemented as part of a

GetByLayoutAndZone ( int layoutId, string zone ) : IQueryable

Returns an enumerable collection of Blocks that are implemented in a specific zone on a Site Layout template.

GetByPage ( int pageId ) : IQueryable

Returns a collection of Blocks that are implemented on a specific page.

GetByPageAndZone ( int pageId, string zone ) : IQueryable

Returns a collection of Blocks that are implemented in a Zone on a specific page.

GetGuid ( int id ) : Guid?

Gets the Guid for the Block that has the specified Id

GetMaxOrder ( Block block ) : int

Returns the next available position for a Rock.Model.Block in a given Zone.

Описание методов

GetByBlockTypeId() публичный метод

Returns an enumerable collection of Rock.Model.Block">Blocks that implement a specific
public GetByBlockTypeId ( int blockTypeId ) : IQueryable
blockTypeId int The Id of the to search for.
Результат IQueryable

GetByLayout() публичный метод

Returns an enumerable collection of Rock.Model.Block">Blocks that are implemented as part of a
public GetByLayout ( int layoutId ) : IQueryable
layoutId int An representing the Id of the that the block belongs to.
Результат IQueryable

GetByLayoutAndZone() публичный метод

Returns an enumerable collection of Blocks that are implemented in a specific zone on a Site Layout template.
public GetByLayoutAndZone ( int layoutId, string zone ) : IQueryable
layoutId int An representing the Id of the that the block belongs to.
zone string A representing the name of the Zone to search by.
Результат IQueryable

GetByPage() публичный метод

Returns a collection of Blocks that are implemented on a specific page.
public GetByPage ( int pageId ) : IQueryable
pageId int An representing the Id of a that a may be implemented on.
Результат IQueryable

GetByPageAndZone() публичный метод

Returns a collection of Blocks that are implemented in a Zone on a specific page.
public GetByPageAndZone ( int pageId, string zone ) : IQueryable
pageId int An that represents the Id of that a may be implemented on.
zone string A that represents the name of a page/layout zone that a may be implemented on.
Результат IQueryable

GetGuid() публичный метод

Gets the Guid for the Block that has the specified Id
public GetGuid ( int id ) : Guid?
id int The identifier.
Результат Guid?

GetMaxOrder() публичный метод

Returns the next available position for a Rock.Model.Block in a given Zone.
public GetMaxOrder ( Block block ) : int
block Block A entity object.
Результат int