MvcViewOptions 클래스

정의

MVC 프레임워크의 보기에 대한 프로그래밍 방식 구성을 제공합니다.

public ref class MvcViewOptions
public ref class MvcViewOptions : System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::Infrastructure::ICompatibilitySwitch ^>
public class MvcViewOptions
public class MvcViewOptions : System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Infrastructure.ICompatibilitySwitch>
type MvcViewOptions = class
type MvcViewOptions = class
    interface seq<ICompatibilitySwitch>
    interface IEnumerable
Public Class MvcViewOptions
Public Class MvcViewOptions
Implements IEnumerable(Of ICompatibilitySwitch)
상속
MvcViewOptions
구현

생성자

MvcViewOptions()

MVC 프레임워크의 보기에 대한 프로그래밍 방식 구성을 제공합니다.

속성

AllowRenderingMaxLengthAttribute

또는 특성으로 표시된 StringLengthAttribute 모델에 바인딩된 경우 호환되는 HTML 요소에 대해 maxlength 특성을 렌더링해야 하는지 여부를 나타내는 값을 가져오거나 MaxLengthAttribute 설정합니다.

ClientModelValidatorProviders

인스턴스 목록을 IClientModelValidatorProvider 가져옵니다.

HtmlHelperOptions

HTML 도우미 및 ViewContext에 대한 프로그래밍 방식 구성을 가져오거나 설정합니다.

SuppressTempDataAttributePrefix

로 주석이 추가된 TempDataAttribute 속성의 ITempDataDictionary 키에 접TempDataProperty-두사 가 포함되어 있는지 여부를 결정하는 값을 가져오거나 설정합니다.

Key 를 지정하지 않으면 로 주석이 추가된 TempDataAttribute 속성의 조회 키가 속성 이름에서 파생됩니다. ASP.NET Core 2.1 이전 릴리스에서 계산된 키는 값 TempDataProperty-앞에 접두사로 지정된 속성 이름이었습니다. 예: TempDataProperty-SuccessMessage. 이 옵션이 이면 true속성의 계산된 키는 속성 이름(예: )입니다. SuccessMessage

기본값은 false입니다.

ViewEngines

이 애플리케이션에서 사용하는 목록을 IViewEngine가져옵니다.

명시적 인터페이스 구현

IEnumerable.GetEnumerator()

MVC 프레임워크의 보기에 대한 프로그래밍 방식 구성을 제공합니다.

IEnumerable<ICompatibilitySwitch>.GetEnumerator()

MVC 프레임워크의 보기에 대한 프로그래밍 방식 구성을 제공합니다.

적용 대상