ViewUserControl Class

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

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>

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

Syntax

'Declaration
Public Class ViewUserControl _
    Inherits UserControl _
    Implements IViewDataContainer
'Usage
Dim instance As ViewUserControl
public class ViewUserControl : UserControl, 
    IViewDataContainer
public ref class ViewUserControl : public UserControl, 
    IViewDataContainer
public class ViewUserControl extends UserControl implements IViewDataContainer

The ViewUserControl type exposes the following members.

Constructors

  Name Description
Public method ViewUserControl Initializes a new instance of the ViewUserControl class.

Top

Properties

  Name Description
Protected property Adapter (Inherited from Control.)
Public property Ajax Gets the AJAX script for the view.
Public property Application (Inherited from UserControl.)
Public property AppRelativeTemplateSourceDirectory (Inherited from Control.)
Public property AppRelativeVirtualPath (Inherited from TemplateControl.)
Public property Attributes (Inherited from UserControl.)
Protected property AutoHandlers Obsolete. (Inherited from TemplateControl.)
Public property BindingContainer (Inherited from Control.)
Public property Cache (Inherited from UserControl.)
Public property CachePolicy (Inherited from UserControl.)
Protected property ChildControlsCreated (Inherited from Control.)
Public property ClientID (Inherited from Control.)
Public property ClientIDMode (Inherited from Control.)
Protected property ClientIDSeparator (Inherited from Control.)
Protected property Context (Inherited from Control.)
Public property Controls (Inherited from Control.)
Public property DataItemContainer (Inherited from Control.)
Public property DataKeysContainer (Inherited from Control.)
Protected property DesignMode (Inherited from Control.)
Public property EnableTheming (Inherited from TemplateControl.)
Public property EnableViewState (Inherited from Control.)
Protected property Events (Inherited from Control.)
Protected property HasChildViewState (Inherited from Control.)
Public property Html Gets the HTML for the view.
Public property ID (Inherited from Control.)
Protected property IdSeparator (Inherited from Control.)
Protected property IsChildControlStateCleared (Inherited from Control.)
Public property IsPostBack (Inherited from UserControl.)
Protected property IsTrackingViewState (Inherited from Control.)
Protected property IsViewStateEnabled (Inherited from Control.)
Protected property LoadViewStateByID (Inherited from Control.)
Public property Model Gets the model.
Public property NamingContainer (Inherited from Control.)
Public property Page (Inherited from Control.)
Public property Parent (Inherited from Control.)
Public property RenderingCompatibility (Inherited from Control.)
Public property Request (Inherited from UserControl.)
Public property Response (Inherited from UserControl.)
Public property Server (Inherited from UserControl.)
Public property Session (Inherited from UserControl.)
Public property Site (Inherited from Control.)
Public property SkinID (Inherited from Control.)
Protected property SupportAutoEvents (Inherited from TemplateControl.)
Public property TempData Gets the temporary-data dictionary.
Public property TemplateControl (Inherited from Control.)
Public property TemplateSourceDirectory (Inherited from Control.)
Public property Trace (Inherited from UserControl.)
Public property UniqueID (Inherited from Control.)
Public property Url Gets the URL for the view.
Public property ViewBag Gets the view bag.
Public property ViewContext Gets or sets the view context.
Public property ViewData Gets or sets the view-data dictionary.
Public property ViewDataKey Gets or sets the view-data key.
Protected property ViewState (Inherited from Control.)
Protected property ViewStateIgnoresCase (Inherited from Control.)
Public property ViewStateMode (Inherited from Control.)
Public property Visible (Inherited from Control.)
Public property Writer Gets the writer that is used to render the view to the response.

Top

Methods

  Name Description
Protected method AddedControl (Inherited from Control.)
Protected method AddParsedSubObject (Inherited from Control.)
Public method ApplyStyleSheetSkin (Inherited from Control.)
Protected method BuildProfileTree (Inherited from Control.)
Protected method ClearCachedClientID (Inherited from Control.)
Protected method ClearChildControlState (Inherited from Control.)
Protected method ClearChildState (Inherited from Control.)
Protected method ClearChildViewState (Inherited from Control.)
Protected method ClearEffectiveClientIDMode (Inherited from Control.)
Protected method Construct (Inherited from TemplateControl.)
Protected method CreateChildControls (Inherited from Control.)
Protected method CreateControlCollection (Inherited from Control.)
Protected method CreateResourceBasedLiteralControl (Inherited from TemplateControl.)
Public method DataBind() (Inherited from Control.)
Protected method DataBind(Boolean) (Inherited from Control.)
Protected method DataBindChildren (Inherited from Control.)
Public method DesignerInitialize (Inherited from UserControl.)
Public method Dispose (Inherited from Control.)
Protected method EnsureChildControls (Inherited from Control.)
Protected method EnsureID (Inherited from Control.)
Protected method EnsureViewData Ensures that view data is added to the ViewDataDictionary object of the user control if the view data exists.
Public method Equals (Inherited from Object.)
Protected method Eval(String) (Inherited from TemplateControl.)
Protected method Eval(String, String) (Inherited from TemplateControl.)
Protected method Finalize (Inherited from Object.)
Public method FindControl(String) (Inherited from Control.)
Protected method FindControl(String, Int32) (Inherited from Control.)
Public method Focus (Inherited from Control.)
Protected method FrameworkInitialize (Inherited from TemplateControl.)
Protected method GetDesignModeState (Inherited from Control.)
Protected method GetGlobalResourceObject(String, String) (Inherited from TemplateControl.)
Protected method GetGlobalResourceObject(String, String, Type, String) (Inherited from TemplateControl.)
Public method GetHashCode (Inherited from Object.)
Protected method GetLocalResourceObject(String) (Inherited from TemplateControl.)
Protected method GetLocalResourceObject(String, Type, String) (Inherited from TemplateControl.)
Public method GetRouteUrl(Object) (Inherited from Control.)
Public method GetRouteUrl(RouteValueDictionary) (Inherited from Control.)
Public method GetRouteUrl(String, Object) (Inherited from Control.)
Public method GetRouteUrl(String, RouteValueDictionary) (Inherited from Control.)
Public method GetType (Inherited from Object.)
Public method GetUniqueIDRelativeTo (Inherited from Control.)
Public method HasControls (Inherited from Control.)
Protected method HasEvents (Inherited from Control.)
Public method InitializeAsUserControl (Inherited from UserControl.)
Protected method IsLiteralContent (Inherited from Control.)
Public method LoadControl(String) (Inherited from TemplateControl.)
Public method LoadControl(Type, array<Object[]) (Inherited from TemplateControl.)
Protected method LoadControlState (Inherited from Control.)
Public method LoadTemplate (Inherited from TemplateControl.)
Protected method LoadViewState (Inherited from UserControl.)
Public method MapPath (Inherited from UserControl.)
Protected method MapPathSecure (Inherited from Control.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method OnAbortTransaction (Inherited from TemplateControl.)
Protected method OnBubbleEvent (Inherited from Control.)
Protected method OnCommitTransaction (Inherited from TemplateControl.)
Protected method OnDataBinding (Inherited from Control.)
Protected method OnError (Inherited from TemplateControl.)
Protected method OnInit (Inherited from UserControl.)
Protected method OnLoad (Inherited from Control.)
Protected method OnPreRender (Inherited from Control.)
Protected method OnUnload (Inherited from Control.)
Protected method OpenFile (Inherited from Control.)
Public method ParseControl(String) (Inherited from TemplateControl.)
Public method ParseControl(String, Boolean) (Inherited from TemplateControl.)
Protected method RaiseBubbleEvent (Inherited from Control.)
Public method ReadStringResource (Inherited from TemplateControl.)
Protected method RemovedControl (Inherited from Control.)
Protected method Render (Inherited from Control.)
Protected method RenderChildren (Inherited from Control.)
Public method RenderControl(HtmlTextWriter) (Inherited from Control.)
Protected method RenderControl(HtmlTextWriter, ControlAdapter) (Inherited from Control.)
Public method RenderView Renders the view by using the specified view context.
Protected method ResolveAdapter (Inherited from Control.)
Public method ResolveClientUrl (Inherited from Control.)
Public method ResolveUrl (Inherited from Control.)
Protected method SaveControlState (Inherited from Control.)
Protected method SaveViewState (Inherited from UserControl.)
Protected method SetDesignModeState (Inherited from Control.)
Public method SetRenderMethodDelegate (Inherited from Control.)
Protected method SetStringResourcePointer (Inherited from TemplateControl.)
Public method SetTextWriter Obsolete. Sets the text writer that is used to render the view to the response.
Protected method SetViewData Sets the view-data dictionary by using the specified view data.
Public method TestDeviceFilter (Inherited from TemplateControl.)
Public method ToString (Inherited from Object.)
Protected method TrackViewState (Inherited from Control.)
Protected method WriteUTF8ResourceString (Inherited from TemplateControl.)
Protected method XPath(String) (Inherited from TemplateControl.)
Protected method XPath(String, IXmlNamespaceResolver) (Inherited from TemplateControl.)
Protected method XPath(String, String) (Inherited from TemplateControl.)
Protected method XPath(String, String, IXmlNamespaceResolver) (Inherited from TemplateControl.)
Protected method XPathSelect(String) (Inherited from TemplateControl.)
Protected method XPathSelect(String, IXmlNamespaceResolver) (Inherited from TemplateControl.)

Top

Events

  Name Description
Public event AbortTransaction (Inherited from TemplateControl.)
Public event CommitTransaction (Inherited from TemplateControl.)
Public event DataBinding (Inherited from Control.)
Public event Disposed (Inherited from Control.)
Public event Error (Inherited from TemplateControl.)
Public event Init (Inherited from Control.)
Public event Load (Inherited from Control.)
Public event PreRender (Inherited from Control.)
Public event Unload (Inherited from Control.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IParserAccessor.AddParsedSubObject (Inherited from Control.)
Explicit interface implemetationPrivate method IFilterResolutionService.CompareFilters (Inherited from TemplateControl.)
Explicit interface implemetationPrivate property IControlBuilderAccessor.ControlBuilder (Inherited from Control.)
Explicit interface implemetationPrivate property IDataBindingsAccessor.DataBindings (Inherited from Control.)
Explicit interface implemetationPrivate method IFilterResolutionService.EvaluateFilter (Inherited from TemplateControl.)
Explicit interface implemetationPrivate property IExpressionsAccessor.Expressions (Inherited from Control.)
Explicit interface implemetationPrivate method IAttributeAccessor.GetAttribute (Inherited from UserControl.)
Explicit interface implemetationPrivate method IControlDesignerAccessor.GetDesignModeState (Inherited from Control.)
Explicit interface implemetationPrivate property IDataBindingsAccessor.HasDataBindings (Inherited from Control.)
Explicit interface implemetationPrivate property IExpressionsAccessor.HasExpressions (Inherited from Control.)
Explicit interface implemetationPrivate property IUserControlDesignerAccessor.InnerText (Inherited from UserControl.)
Explicit interface implemetationPrivate method IAttributeAccessor.SetAttribute (Inherited from UserControl.)
Explicit interface implemetationPrivate method IControlDesignerAccessor.SetDesignModeState (Inherited from Control.)
Explicit interface implemetationPrivate method IControlDesignerAccessor.SetOwnerControl (Inherited from Control.)
Explicit interface implemetationPrivate property IUserControlDesignerAccessor.TagName (Inherited from UserControl.)
Explicit interface implemetationPrivate property IControlDesignerAccessor.UserData (Inherited from Control.)

Top

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

Reference

System.Web.Mvc Namespace