The restrictions that apply to normal bikes on public transport also apply to e-bikes. These vary from region to region, as well as between different transport operators. Therefore, it's wise to check before you travel!