「ActionResult クラス (System.Web.Mvc)」の版間の差分

imported>Administrator
imported>Administrator
42行目: 42行目:
         public ImageFormat ImageFormat { get; set; }
         public ImageFormat ImageFormat { get; set; }


         private readonly Dictionary<ImageFormat, string> ContentTypes = new Dictionary<ImageFormat, string>()
         private readonly Dictionary<ImageFormat, string> ContentTypes =  
        {
            new Dictionary<ImageFormat, string>()
            {ImageFormat.Bmp , "image/bmp"},
            {
            {ImageFormat.Gif , "image/gif"},
                {ImageFormat.Bmp , "image/bmp"},
            {ImageFormat.Icon, "image/vnd.microsoft.icon"},
                {ImageFormat.Gif , "image/gif"},
            {ImageFormat.Jpeg, "image/jpeg"},
                {ImageFormat.Icon, "image/vnd.microsoft.icon"},
            {ImageFormat.Png , "image/png"},
                {ImageFormat.Jpeg, "image/jpeg"},
            {ImageFormat.Tiff, "image/tiff"},
                {ImageFormat.Png , "image/png"},
            {ImageFormat.Wmf , "image/wmf"},
                {ImageFormat.Tiff, "image/tiff"},
        };
                {ImageFormat.Wmf , "image/wmf"},
            };


         public override void ExecuteResult(ControllerContext context)
         public override void ExecuteResult(ControllerContext context)