PartialViewResult Class¶
Represents an Microsoft.AspNetCore.Mvc.ActionResult that renders a partial view to the response.
- Namespace
Microsoft.AspNetCore.Mvc- Assemblies
- Microsoft.AspNetCore.Mvc.ViewFeatures
Syntax¶
public class PartialViewResult : ActionResult, IActionResult
-
class
Microsoft.AspNetCore.Mvc.PartialViewResult
Properties¶
-
Microsoft.AspNetCore.Mvc.PartialViewResult.ContentType¶ Gets or sets the Content-Type header for the response.
Return type: System.String public string ContentType { get; set; }
-
Microsoft.AspNetCore.Mvc.PartialViewResult.StatusCode¶ Gets or sets the HTTP status code.
Return type: System.Nullable<System.Int32> public int ? StatusCode { get; set; }
-
Microsoft.AspNetCore.Mvc.PartialViewResult.TempData¶ Gets or sets the
Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionaryused for rendering the view for this result.Return type: Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary public ITempDataDictionary TempData { get; set; }
-
Microsoft.AspNetCore.Mvc.PartialViewResult.ViewData¶ Gets or sets the
Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionaryused for rendering the view for this result.Return type: Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary public ViewDataDictionary ViewData { get; set; }
-
Microsoft.AspNetCore.Mvc.PartialViewResult.ViewEngine¶ Gets or sets the
Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngineused to locate views.Return type: Microsoft.AspNetCore.Mvc.ViewEngines.IViewEngine public IViewEngine ViewEngine { get; set; }
-
Microsoft.AspNetCore.Mvc.PartialViewResult.ViewName¶ Gets or sets the name of the partial view to render.
Return type: System.String public string ViewName { get; set; }
-