控制器
public partial class HomeController
{
private static String[] userPermissions;
public HomeController()
{
var MyPermission = Convert.ToString(TempData["MyPermission"]);
userPermissions = (MyPermission).Split(',');
}
[Microsoft.AspNet.Mvc.Facebook.FacebookAuthorize(userPermissions)]
public virtual ActionResult MyActionMethod()
{
return View();
}
}
超载
编译错误
在上面的块中,我们有以下代码
[Microsoft.AspNet.Mvc.Facebook.FacebookAuthorize(userPermissions)]
它给出以下编译错误...