回答

0

它們已經爲您執行。 HttpContext.User實現IPrincipal,HttpContext.User.Identity實現IIdentity。

至於他們做什麼,它取決於您使用的.NET版本,因爲事情已經發生了一些變化。這是最新的.NET 4.5的documentation

相關問題