ASP.NET MVC-のためのプロジェクトテンプレートは、コードASP.NET MVCのAccountControllerで定義されているOnActionExecutingとは何ですか?
protected override void OnActionExecuting(ActionExecutingContext filterContext) {
if (filterContext.HttpContext.User.Identity is WindowsIdentity) {
throw new InvalidOperationException("Windows authentication is not supported.");
}
}
それが何のためにあるのですが、次の作品が含まれていAccountControllerを含み?
なぜサポートされていないのですか? – Mikeon
これはテンプレートの設定方法です。必要に応じて、MVCでWindows認証を使用できます。 http://www.asp.net/learn/mvc/tutorial-18-cs.aspxを参照してください。 –