RazorPagesOptions Class

Definition

Provides configuration for Razor Pages.

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

Constructors

RazorPagesOptions()

Properties

AllowAreas

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

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

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

Conventions

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

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.GetEnumerator()
IEnumerable<ICompatibilitySwitch>.GetEnumerator()

Applies to