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

Data access/service class for Rock.Model.BlockType objects.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetByGuid ( System.Guid guid ) : BlockType

Gets a Rock.Model.BlockType by its Guid.

GetByName ( string name ) : IQueryable

Gets a collection of Rock.Model.BlockType entities by Name

GetByPath ( string path ) : IQueryable

Gets a collection of Rock.Model.BlockType entities by path.

GetGuid ( int id ) : Guid?

Gets the Guid for the BlockType that has the specified Id

RegisterBlockTypes ( string physWebAppPath, System page, bool refreshAll = false ) : void

Registers any block types that are not currently registered in Rock.

Приватные методы

Метод Описание
FindAllBlocksInPath ( string physWebAppPath, string>.Dictionary list, string folder ) : void

Finds all the BlockTypes within a given path.

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

GetByGuid() публичный Метод

Gets a Rock.Model.BlockType by its Guid.
public GetByGuid ( System.Guid guid ) : BlockType
guid System.Guid identifier filter to search by.
Результат BlockType

GetByName() публичный Метод

Gets a collection of Rock.Model.BlockType entities by Name
public GetByName ( string name ) : IQueryable
name string A containing the Name filter to search for.
Результат IQueryable

GetByPath() публичный Метод

Gets a collection of Rock.Model.BlockType entities by path.
public GetByPath ( string path ) : IQueryable
path string A containing the path to search for.
Результат IQueryable

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

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

RegisterBlockTypes() публичный статический Метод

Registers any block types that are not currently registered in Rock.
public static RegisterBlockTypes ( string physWebAppPath, System page, bool refreshAll = false ) : void
physWebAppPath string A containing the physical path to Rock on the server.
page System The .
refreshAll bool if set to true will refresh name, category, and description for all block types (not just the new ones)
Результат void