ViewUserControl Class

 

Represents the information that is needed to build a user control.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Inheritance Hierarchy

System.Object
  System.Web.UI.Control
    System.Web.UI.TemplateControl
      System.Web.UI.UserControl
        System.Web.Mvc.ViewUserControl
          System.Web.Mvc.ViewUserControl<TModel>

Syntax

public class ViewUserControl : UserControl, IViewDataContainer
public ref class ViewUserControl : UserControl, IViewDataContainer
type ViewUserControl = 
    class
        inherit UserControl
        interface IViewDataContainer
    end
Public Class ViewUserControl
    Inherits UserControl
    Implements IViewDataContainer

Constructors

Name Description
System_CAPS_pubmethod ViewUserControl()

Initializes a new instance of the ViewUserControl class.

Properties

Name Description
System_CAPS_protproperty Adapter

(Inherited from Control.)

System_CAPS_pubproperty Ajax

Gets the AJAX script for the view.

System_CAPS_pubproperty Application

(Inherited from UserControl.)

System_CAPS_pubproperty AppRelativeTemplateSourceDirectory

(Inherited from Control.)

System_CAPS_pubproperty AppRelativeVirtualPath

(Inherited from TemplateControl.)

System_CAPS_pubproperty Attributes

(Inherited from UserControl.)

System_CAPS_pubproperty Cache

(Inherited from UserControl.)

System_CAPS_pubproperty CachePolicy

(Inherited from UserControl.)

System_CAPS_protproperty ChildControlsCreated

(Inherited from Control.)

System_CAPS_pubproperty ClientID

(Inherited from Control.)

System_CAPS_pubproperty ClientIDMode

(Inherited from Control.)

System_CAPS_protproperty ClientIDSeparator

(Inherited from Control.)

System_CAPS_protproperty Context

(Inherited from Control.)

System_CAPS_pubproperty Controls

(Inherited from Control.)

System_CAPS_protproperty DesignMode

(Inherited from Control.)

System_CAPS_pubproperty EnableTheming

(Inherited from TemplateControl.)

System_CAPS_pubproperty EnableViewState

(Inherited from Control.)

System_CAPS_protproperty Events

(Inherited from Control.)

System_CAPS_protproperty HasChildViewState

(Inherited from Control.)

System_CAPS_pubproperty Html

Gets the HTML for the view.

System_CAPS_pubproperty ID

(Inherited from Control.)

System_CAPS_protproperty IdSeparator

(Inherited from Control.)

System_CAPS_protproperty IsChildControlStateCleared

(Inherited from Control.)

System_CAPS_pubproperty IsPostBack

(Inherited from UserControl.)

System_CAPS_protproperty IsTrackingViewState

(Inherited from Control.)

System_CAPS_protproperty IsViewStateEnabled

(Inherited from Control.)

System_CAPS_protproperty LoadViewStateByID

(Inherited from Control.)

System_CAPS_pubproperty Model

Gets the model.

System_CAPS_pubproperty NamingContainer

(Inherited from Control.)

System_CAPS_pubproperty Page

(Inherited from Control.)

System_CAPS_pubproperty Parent

(Inherited from Control.)

System_CAPS_pubproperty RenderingCompatibility

(Inherited from Control.)

System_CAPS_pubproperty Request

(Inherited from UserControl.)

System_CAPS_pubproperty Response

(Inherited from UserControl.)

System_CAPS_pubproperty Server

(Inherited from UserControl.)

System_CAPS_pubproperty Session

(Inherited from UserControl.)

System_CAPS_pubproperty Site

(Inherited from Control.)

System_CAPS_pubproperty SkinID

(Inherited from Control.)

System_CAPS_pubproperty TempData

Gets the temporary-data dictionary.

System_CAPS_pubproperty TemplateControl

(Inherited from Control.)

System_CAPS_pubproperty TemplateSourceDirectory

(Inherited from Control.)

System_CAPS_pubproperty Trace

(Inherited from UserControl.)

System_CAPS_pubproperty UniqueID

(Inherited from Control.)

System_CAPS_pubproperty Url

Gets the URL for the view.

System_CAPS_pubproperty ValidateRequestMode

(Inherited from Control.)

System_CAPS_pubproperty ViewBag

Gets the view bag.

System_CAPS_pubproperty ViewContext

Gets or sets the view context.

System_CAPS_pubproperty ViewData

Gets or sets the view-data dictionary.

System_CAPS_pubproperty ViewDataKey

Gets or sets the view-data key.

System_CAPS_protproperty ViewState

(Inherited from Control.)

System_CAPS_protproperty ViewStateIgnoresCase

(Inherited from Control.)

System_CAPS_pubproperty ViewStateMode

(Inherited from Control.)

System_CAPS_pubproperty Visible

(Inherited from Control.)

System_CAPS_pubproperty Writer

Gets the writer that is used to render the view to the response.

Methods

Name Description
System_CAPS_protmethod AddedControl(Control, Int32)

(Inherited from Control.)

System_CAPS_protmethod AddParsedSubObject(Object)

(Inherited from Control.)

System_CAPS_pubmethod ApplyStyleSheetSkin(Page)

(Inherited from Control.)

System_CAPS_protmethod BuildProfileTree(String, Boolean)

(Inherited from Control.)

System_CAPS_protmethod ClearCachedClientID()

(Inherited from Control.)

System_CAPS_protmethod ClearChildControlState()

(Inherited from Control.)

System_CAPS_protmethod ClearChildState()

(Inherited from Control.)

System_CAPS_protmethod ClearChildViewState()

(Inherited from Control.)

System_CAPS_protmethod ClearEffectiveClientIDMode()

(Inherited from Control.)

System_CAPS_protmethod Construct()

(Inherited from TemplateControl.)

System_CAPS_protmethod CreateChildControls()

(Inherited from Control.)

System_CAPS_protmethod CreateControlCollection()

(Inherited from Control.)

System_CAPS_protmethod CreateResourceBasedLiteralControl(Int32, Int32, Boolean)

(Inherited from TemplateControl.)

System_CAPS_pubmethod DataBind()

(Inherited from Control.)

System_CAPS_protmethod DataBind(Boolean)

(Inherited from Control.)

System_CAPS_protmethod DataBindChildren()

(Inherited from Control.)

System_CAPS_pubmethod Dispose()

(Inherited from Control.)

System_CAPS_protmethod EnsureChildControls()

(Inherited from Control.)

System_CAPS_protmethod EnsureID()

(Inherited from Control.)

System_CAPS_protmethod EnsureViewData()

Ensures that view data is added to the ViewDataDictionary object of the user control if the view data exists.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Eval(String)

(Inherited from TemplateControl.)

System_CAPS_protmethod Eval(String, String)

(Inherited from TemplateControl.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod FindControl(String)

(Inherited from Control.)

System_CAPS_protmethod FindControl(String, Int32)

(Inherited from Control.)

System_CAPS_pubmethod Focus()

(Inherited from Control.)

System_CAPS_protmethod GetDesignModeState()

(Inherited from Control.)

System_CAPS_protmethod GetGlobalResourceObject(String, String)

(Inherited from TemplateControl.)

System_CAPS_protmethod GetGlobalResourceObject(String, String, Type, String)

(Inherited from TemplateControl.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_protmethod GetLocalResourceObject(String)

(Inherited from TemplateControl.)

System_CAPS_protmethod GetLocalResourceObject(String, Type, String)

(Inherited from TemplateControl.)

System_CAPS_pubmethod GetRouteUrl(Object)

(Inherited from Control.)

System_CAPS_pubmethod GetRouteUrl(RouteValueDictionary)

(Inherited from Control.)

System_CAPS_pubmethod GetRouteUrl(String, Object)

(Inherited from Control.)

System_CAPS_pubmethod GetRouteUrl(String, RouteValueDictionary)

(Inherited from Control.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod GetUniqueIDRelativeTo(Control)

(Inherited from Control.)

System_CAPS_pubmethod HasControls()

(Inherited from Control.)

System_CAPS_protmethod HasEvents()

(Inherited from Control.)

System_CAPS_protmethod IsLiteralContent()

(Inherited from Control.)

System_CAPS_pubmethod LoadControl(String)

(Inherited from TemplateControl.)

System_CAPS_pubmethod LoadControl(Type, Object[])

(Inherited from TemplateControl.)

System_CAPS_protmethod LoadControlState(Object)

(Inherited from Control.)

System_CAPS_pubmethod LoadTemplate(String)

(Inherited from TemplateControl.)

System_CAPS_protmethod LoadViewState(Object)

(Inherited from UserControl.)

System_CAPS_pubmethod MapPath(String)

(Inherited from UserControl.)

System_CAPS_protmethod MapPathSecure(String)

(Inherited from Control.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod OnAbortTransaction(EventArgs)

(Inherited from TemplateControl.)

System_CAPS_protmethod OnBubbleEvent(Object, EventArgs)

(Inherited from Control.)

System_CAPS_protmethod OnCommitTransaction(EventArgs)

(Inherited from TemplateControl.)

System_CAPS_protmethod OnDataBinding(EventArgs)

(Inherited from Control.)

System_CAPS_protmethod OnError(EventArgs)

(Inherited from TemplateControl.)

System_CAPS_protmethod OnInit(EventArgs)

(Inherited from UserControl.)

System_CAPS_protmethod OnLoad(EventArgs)

(Inherited from Control.)

System_CAPS_protmethod OnPreRender(EventArgs)

(Inherited from Control.)

System_CAPS_protmethod OnUnload(EventArgs)

(Inherited from Control.)

System_CAPS_protmethod OpenFile(String)

(Inherited from Control.)

System_CAPS_pubmethod ParseControl(String)

(Inherited from TemplateControl.)

System_CAPS_pubmethod ParseControl(String, Boolean)

(Inherited from TemplateControl.)

System_CAPS_protmethod RaiseBubbleEvent(Object, EventArgs)

(Inherited from Control.)

System_CAPS_protmethod RemovedControl(Control)

(Inherited from Control.)

System_CAPS_protmethod Render(HtmlTextWriter)

(Inherited from Control.)

System_CAPS_protmethod RenderChildren(HtmlTextWriter)

(Inherited from Control.)

System_CAPS_pubmethod RenderControl(HtmlTextWriter)

(Inherited from Control.)

System_CAPS_protmethod RenderControl(HtmlTextWriter, ControlAdapter)

(Inherited from Control.)

System_CAPS_pubmethod RenderView(ViewContext)

Renders the view by using the specified view context.

System_CAPS_protmethod ResolveAdapter()

(Inherited from Control.)

System_CAPS_pubmethod ResolveClientUrl(String)

(Inherited from Control.)

System_CAPS_pubmethod ResolveUrl(String)

(Inherited from Control.)

System_CAPS_protmethod SaveControlState()

(Inherited from Control.)

System_CAPS_protmethod SaveViewState()

(Inherited from UserControl.)

System_CAPS_protmethod SetDesignModeState(IDictionary)

(Inherited from Control.)

System_CAPS_pubmethod SetRenderMethodDelegate(RenderMethod)

(Inherited from Control.)

System_CAPS_pubmethod SetTextWriter(TextWriter)

Obsolete.Sets the text writer that is used to render the view to the response.

System_CAPS_protmethod SetViewData(ViewDataDictionary)

Sets the view-data dictionary by using the specified view data.

System_CAPS_pubmethod TestDeviceFilter(String)

(Inherited from TemplateControl.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_protmethod TrackViewState()

(Inherited from Control.)

System_CAPS_pubmethod TryUpdateModel<TModel>(TModel)

(Inherited from UserControl.)

System_CAPS_pubmethod TryUpdateModel<TModel>(TModel, IValueProvider)

(Inherited from UserControl.)

System_CAPS_pubmethod UpdateModel<TModel>(TModel)

(Inherited from UserControl.)

System_CAPS_pubmethod UpdateModel<TModel>(TModel, IValueProvider)

(Inherited from UserControl.)

System_CAPS_protmethod XPath(String)

(Inherited from TemplateControl.)

System_CAPS_protmethod XPath(String, IXmlNamespaceResolver)

(Inherited from TemplateControl.)

System_CAPS_protmethod XPath(String, String)

(Inherited from TemplateControl.)

System_CAPS_protmethod XPath(String, String, IXmlNamespaceResolver)

(Inherited from TemplateControl.)

System_CAPS_protmethod XPathSelect(String)

(Inherited from TemplateControl.)

System_CAPS_protmethod XPathSelect(String, IXmlNamespaceResolver)

(Inherited from TemplateControl.)

Events

Name Description
System_CAPS_pubevent AbortTransaction

(Inherited from TemplateControl.)

System_CAPS_pubevent CommitTransaction

(Inherited from TemplateControl.)

System_CAPS_pubevent DataBinding

(Inherited from Control.)

System_CAPS_pubevent Disposed

(Inherited from Control.)

System_CAPS_pubevent Error

(Inherited from TemplateControl.)

System_CAPS_pubevent Init

(Inherited from Control.)

System_CAPS_pubevent Load

(Inherited from Control.)

System_CAPS_pubevent PreRender

(Inherited from Control.)

System_CAPS_pubevent Unload

(Inherited from Control.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod IAttributeAccessor.GetAttribute(String)

(Inherited from UserControl.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IAttributeAccessor.SetAttribute(String, String)

(Inherited from UserControl.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IControlDesignerAccessor.GetDesignModeState()

(Inherited from Control.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IControlDesignerAccessor.SetDesignModeState(IDictionary)

(Inherited from Control.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IControlDesignerAccessor.SetOwnerControl(Control)

(Inherited from Control.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IFilterResolutionService.CompareFilters(String, String)

(Inherited from TemplateControl.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IFilterResolutionService.EvaluateFilter(String)

(Inherited from TemplateControl.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod IParserAccessor.AddParsedSubObject(Object)

(Inherited from Control.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Mvc Namespace

Return to top