ViewContext

来源:互联网 发布:电脑桌面软件打不开 编辑:程序博客网 时间:2024/05/17 00:52

Constructors

ViewContext() Initializes a new instance of  the ViewContext class

ViewContext(ControllerContext,IView,ViewDataDictionary,TempDataDictionary,TextWriter) Initializes a new instance of the ViewContext,view,view data dictionary,tenporary data dictionary,and text writer.

Properties:

ClientValidationEnabled

Controller

FormContext

HttpContext

IsChildAction

ParentActionViewContext

RequestContext

RouteData

TempData

View

ViewData

Writer

Methods:

Equals

Finalize:Allows an object  to try to free resources and perform other cleanup operations before it eid reclaimed by garbage colletion(Inherited from Object)

GetHashCode Serves as  a hash function for a paticular type (Inherited from Object)

GetType:Gets theType of the current instance(Inherited from Object)

MemberWiseClone:Creates a shallow copy of the current Object(Inherited from Object)

OutputClientValidation :Writes the client validation infomation  to HTTP response

ToString