BatchNormalization layer vs hasLayerNorm in the Dense Layer?

What difference between the BatchNormalization layer and hasLayerNorm in the Dense Layer? Should I create new Batch Layer with the same ins-outs from previous Dense Layer or it’s the same as true flag at hasLayerNorm?

Thanks