什么是 MVC 5 属性路由的可选参数 "Name"

What is optional parameter "Name" of MVC 5 Attribute Routing

在 MVC5 的属性路由功能中,"Name" 参数的属性路由语法中有一个选项,例如: [Route("Register/SetPassword", Name="SetPasswordGet")]

我的问题是这个 "Name="SetPasswordGet" 参数是什么?如何使用它?

您可以在 RedirectToRoute() 方法中使用名称作为参数,参见 msdn and this question