RazorPagesOptions RazorPagesOptions RazorPagesOptions RazorPagesOptions Class

Definition

Provides configuration for Razor Pages.

public ref class RazorPagesOptions : System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Mvc::Infrastructure::ICompatibilitySwitch ^>
public class RazorPagesOptions : System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Infrastructure.ICompatibilitySwitch>
type RazorPagesOptions = class
    interface seq<ICompatibilitySwitch>
    interface IEnumerable
Public Class RazorPagesOptions
Implements IEnumerable(Of ICompatibilitySwitch)
Inheritance
RazorPagesOptionsRazorPagesOptionsRazorPagesOptionsRazorPagesOptions
Implements

Constructors

RazorPagesOptions() RazorPagesOptions() RazorPagesOptions() RazorPagesOptions()

Properties

AllowAreas AllowAreas AllowAreas AllowAreas

Gets or sets a value that determines if areas are enabled for Razor Pages. Defaults to false.

AllowDefaultHandlingForOptionsRequests AllowDefaultHandlingForOptionsRequests AllowDefaultHandlingForOptionsRequests AllowDefaultHandlingForOptionsRequests

Gets or sets a value that determines if HTTP requests with the OPTIONS method are handled by default, if no handler is available.

AllowMappingHeadRequestsToGetHandler AllowMappingHeadRequestsToGetHandler AllowMappingHeadRequestsToGetHandler AllowMappingHeadRequestsToGetHandler

Gets or sets a value that determines if HTTP method matching for Razor Pages handler methods will use fuzzy matching. Defaults to false.

Conventions Conventions Conventions Conventions

Gets a collection of IPageConvention instances that are applied during route and page model construction.

RootDirectory RootDirectory RootDirectory RootDirectory

Application relative path used as the root of discovery for Razor Page files. Defaults to the /Pages directory under application root.

Explicit Interface Implementations

IEnumerable<ICompatibilitySwitch>.GetEnumerator() IEnumerable<ICompatibilitySwitch>.GetEnumerator() IEnumerable<ICompatibilitySwitch>.GetEnumerator() IEnumerable<ICompatibilitySwitch>.GetEnumerator()
IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

Applies to