다음을 통해 공유


ViewContext 생성자

정의

오버로드

ViewContext()

ViewContext를 만듭니다.

ViewContext(ViewContext, IView, ViewDataDictionary, TextWriter)

ViewContext의 새 인스턴스를 초기화합니다.

ViewContext(ActionContext, IView, ViewDataDictionary, ITempDataDictionary, TextWriter, HtmlHelperOptions)

ViewContext의 새 인스턴스를 초기화합니다.

ViewContext()

Source:
ViewContext.cs
Source:
ViewContext.cs
Source:
ViewContext.cs

ViewContext를 만듭니다.

public:
 ViewContext();
public ViewContext ();
Public Sub New ()

설명

기본 생성자는 단위 테스트 목적으로만 제공됩니다.

적용 대상

ViewContext(ViewContext, IView, ViewDataDictionary, TextWriter)

Source:
ViewContext.cs
Source:
ViewContext.cs
Source:
ViewContext.cs

ViewContext의 새 인스턴스를 초기화합니다.

public:
 ViewContext(Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ viewContext, Microsoft::AspNetCore::Mvc::ViewEngines::IView ^ view, Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary ^ viewData, System::IO::TextWriter ^ writer);
public ViewContext (Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, Microsoft.AspNetCore.Mvc.ViewEngines.IView view, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, System.IO.TextWriter writer);
new Microsoft.AspNetCore.Mvc.Rendering.ViewContext : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * Microsoft.AspNetCore.Mvc.ViewEngines.IView * Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary * System.IO.TextWriter -> Microsoft.AspNetCore.Mvc.Rendering.ViewContext
Public Sub New (viewContext As ViewContext, view As IView, viewData As ViewDataDictionary, writer As TextWriter)

매개 변수

viewContext
ViewContext

ViewContext 값을 복사할 입니다.

view
IView

IView 렌더링되는 입니다.

writer
TextWriter

TextWriter 출력을 렌더링할 입니다.

적용 대상

ViewContext(ActionContext, IView, ViewDataDictionary, ITempDataDictionary, TextWriter, HtmlHelperOptions)

Source:
ViewContext.cs
Source:
ViewContext.cs
Source:
ViewContext.cs

ViewContext의 새 인스턴스를 초기화합니다.

public:
 ViewContext(Microsoft::AspNetCore::Mvc::ActionContext ^ actionContext, Microsoft::AspNetCore::Mvc::ViewEngines::IView ^ view, Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary ^ viewData, Microsoft::AspNetCore::Mvc::ViewFeatures::ITempDataDictionary ^ tempData, System::IO::TextWriter ^ writer, Microsoft::AspNetCore::Mvc::ViewFeatures::HtmlHelperOptions ^ htmlHelperOptions);
public ViewContext (Microsoft.AspNetCore.Mvc.ActionContext actionContext, Microsoft.AspNetCore.Mvc.ViewEngines.IView view, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary tempData, System.IO.TextWriter writer, Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelperOptions htmlHelperOptions);
new Microsoft.AspNetCore.Mvc.Rendering.ViewContext : Microsoft.AspNetCore.Mvc.ActionContext * Microsoft.AspNetCore.Mvc.ViewEngines.IView * Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary * Microsoft.AspNetCore.Mvc.ViewFeatures.ITempDataDictionary * System.IO.TextWriter * Microsoft.AspNetCore.Mvc.ViewFeatures.HtmlHelperOptions -> Microsoft.AspNetCore.Mvc.Rendering.ViewContext
Public Sub New (actionContext As ActionContext, view As IView, viewData As ViewDataDictionary, tempData As ITempDataDictionary, writer As TextWriter, htmlHelperOptions As HtmlHelperOptions)

매개 변수

view
IView

IView 렌더링되는 입니다.

writer
TextWriter

TextWriter 출력을 렌더링할 입니다.

htmlHelperOptions
HtmlHelperOptions

이 instance 적용할 입니다HtmlHelperOptions.

적용 대상