Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
RazorPagesOptions Class
Definition
- Namespace:
- Microsoft.AspNetCore.Mvc.RazorPages
- Assembly:
- Microsoft.AspNetCore.Mvc.RazorPages.dll
- Package:
- Microsoft.AspNetCore.App.Ref v10.0.0
- Package:
- Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115
- Package:
- Microsoft.AspNetCore.Mvc.RazorPages v2.0.0
- Package:
- Microsoft.AspNetCore.Mvc.RazorPages v2.1.0
- Package:
- Microsoft.AspNetCore.Mvc.RazorPages v2.2.0
- Package:
- Microsoft.AspNetCore.App.Ref v3.0.1
- Package:
- Microsoft.AspNetCore.App.Ref v3.1.10
- Package:
- Microsoft.AspNetCore.App.Ref v5.0.0
- Package:
- Microsoft.AspNetCore.App.Ref v6.0.36
- Package:
- Microsoft.AspNetCore.App.Ref v7.0.5
- Package:
- Microsoft.AspNetCore.App.Ref v8.0.19
- Package:
- Microsoft.AspNetCore.App.Ref v9.0.8
- Source:
- RazorPagesOptions.cs
- Source:
- RazorPagesOptions.cs
- Source:
- RazorPagesOptions.cs
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 : System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Infrastructure.ICompatibilitySwitch>
public class RazorPagesOptions
type RazorPagesOptions = class
interface seq<ICompatibilitySwitch>
interface IEnumerable
type RazorPagesOptions = class
Public Class RazorPagesOptions
Implements IEnumerable(Of ICompatibilitySwitch)
Public Class RazorPagesOptions
- Inheritance
-
RazorPagesOptions
- Implements
Constructors
| Name | Description |
|---|---|
| RazorPagesOptions() | |
Properties
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| IEnumerable.GetEnumerator() | |
| IEnumerable<ICompatibilitySwitch>.GetEnumerator() | |
Applies to
Feedback
Was this page helpful?
