ViewComponentContext Class¶
Constructors¶
-
Microsoft.AspNet.Mvc.ViewComponentContext.ViewComponentContext()
Creates a new [Microsoft.AspNet.Mvc.ViewComponentContext](Microsoft.AspNet.Mvc.ViewComponentContext.yml).
public ViewComponentContext()
-
ViewComponentContext
(Microsoft.AspNet.Mvc.ViewComponents.ViewComponentDescriptor, System.Object[], Microsoft.AspNet.Mvc.ViewContext, System.IO.TextWriter)¶ Creates a new [Microsoft.AspNet.Mvc.ViewComponentContext](Microsoft.AspNet.Mvc.ViewComponentContext.yml).
Arguments: - viewComponentDescriptor (Microsoft.AspNet.Mvc.ViewComponents.ViewComponentDescriptor) – The [Microsoft.AspNet.Mvc.ViewComponentContext](Microsoft.AspNet.Mvc.ViewComponentContext.yml) for the View Component being invoked.
- arguments (System.Object[]) – The View Component arguments.
- viewContext (Microsoft.AspNet.Mvc.ViewContext) – The [Microsoft.AspNet.Mvc.ViewComponentContext.ViewContext](Microsoft.AspNet.Mvc.ViewComponentContext.yml).
- writer (System.IO.TextWriter) – The [System.IO.TextWriter]() for writing output.
public ViewComponentContext(ViewComponentDescriptor viewComponentDescriptor, object[] arguments, ViewContext viewContext, TextWriter writer)
-
Properties¶
-
Arguments
()¶ Gets or sets the View Component arguments.
Return type: System.Object[] public object[] Arguments { get; set; }
-
ViewComponentDescriptor
()¶ Gets or sets the [Microsoft.AspNet.Mvc.ViewComponentContext.ViewComponentDescriptor](Microsoft.AspNet.Mvc.ViewComponentContext.yml) for the View Component being invoked.
Return type: Microsoft.AspNet.Mvc.ViewComponents.ViewComponentDescriptor public ViewComponentDescriptor ViewComponentDescriptor { get; set; }
-
ViewContext
()¶ Gets or sets the [Microsoft.AspNet.Mvc.ViewComponentContext.ViewContext](Microsoft.AspNet.Mvc.ViewComponentContext.yml).
Return type: Microsoft.AspNet.Mvc.ViewContext public ViewContext ViewContext { get; set; }
-
ViewData
()¶ Gets the [Microsoft.AspNet.Mvc.ViewDataDictionary](Microsoft.AspNet.Mvc.ViewDataDictionary.yml).
Return type: Microsoft.AspNet.Mvc.ViewDataDictionary public ViewDataDictionary ViewData { get; }
-
Writer
()¶ Gets the [System.IO.TextWriter]() for output.
Return type: System.IO.TextWriter public TextWriter Writer { get; }
-