Rock.Model.BlockTypeService.GetByName C# (CSharp) Method

GetByName() public method

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.
return IQueryable
        public IQueryable<BlockType> GetByName( string name )
        {
            return Queryable().Where( t => t.Name == name );
        }