This is only supported by layer collections (the ones accessible in the outliner when you see "View Layer").