How to provide menu route parameters in Drupal 8

In Drupal 8 by appropriate use of routing.yml and callback function/class, you can send values through URL. For eg, you a URL of type /data/{user-id}, on reaching this URL data should be loaded according to the user-id. This can be achieved in following way :

custom_module.admin_data.uqid.remove.uid:
  path: '/admin/custom_form/{uqid}/remove/{uid}'
  defaults:
    _form: '\Drupal\custom_module\Form\UserRemoveConfirmForm'
    _title: 'Remove User'
    custom_arg: '{uqid},{uid}'
  requirements:
    _permission: 'administer custom module'

Through .yml we are allowing user to send 2 values i.e uqid and uid. Now these can be fetched in Form class in following ways : 

public function buildForm(array $form, FormStateInterface $form_state, $uqid, $uid) {

//Here you can access both $uqid and $uid.

}