Attribute for declaring views for the web forms presentation
mechanism.
Namespace:
MVCSharp.Webforms.ConfigurationAssembly: MVCSharp (in MVCSharp.dll)
Version: 0.8.5217.34148
Syntax
C# |
---|
public class WebformsViewAttribute : ViewAttribute |
Visual Basic (Declaration) |
---|
Public Class WebformsViewAttribute _ Inherits ViewAttribute |
Visual C++ |
---|
public ref class WebformsViewAttribute : public ViewAttribute |
Remarks
It does not matter what type this attribute is applied
to. All neccessary information is contained inside the attribute
declarations.
Examples
Below we declare two web views:
CopyC#

[WebformsView(typeof(MyTask), "View 1", "Default.aspx")] [WebformsView(typeof(MyTask), "View 2", "Views/View2.aspx")] class MyViews {}
Inheritance Hierarchy
System..::.Object
System..::.Attribute
MVCSharp.Core.Configuration.Views..::.ViewAttribute
MVCSharp.Webforms.Configuration..::.WebformsViewAttribute
System..::.Attribute
MVCSharp.Core.Configuration.Views..::.ViewAttribute
MVCSharp.Webforms.Configuration..::.WebformsViewAttribute