RazorPagesOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
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 |
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 |
Explicit Interface Implementations
IEnumerable.GetEnumerator() | |
IEnumerable<ICompatibilitySwitch>.GetEnumerator() |