「ActionResult クラス (System.Web.Mvc)」を編集中
ナビゲーションに移動
検索に移動
この編集を取り消せます。 下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
47行目: | 47行目: | ||
public ImageFormat ImageFormat { get; set; } | public ImageFormat ImageFormat { get; set; } | ||
− | private readonly Dictionary<ImageFormat, string> ContentTypes = | + | private readonly Dictionary<ImageFormat, string> ContentTypes = new Dictionary<ImageFormat, string>() |
− | + | { | |
− | + | {ImageFormat.Bmp , "image/bmp"}, | |
− | + | {ImageFormat.Gif , "image/gif"}, | |
− | + | {ImageFormat.Icon, "image/vnd.microsoft.icon"}, | |
− | + | {ImageFormat.Jpeg, "image/jpeg"}, | |
− | + | {ImageFormat.Png , "image/png"}, | |
− | + | {ImageFormat.Tiff, "image/tiff"}, | |
− | + | {ImageFormat.Wmf , "image/wmf"}, | |
− | + | }; | |
− | |||
public override void ExecuteResult(ControllerContext context) | public override void ExecuteResult(ControllerContext context) |