Share via


CompiledPageActionDescriptor Class

Definition

A PageActionDescriptor for a compiled Razor page.

public ref class CompiledPageActionDescriptor : Microsoft::AspNetCore::Mvc::RazorPages::PageActionDescriptor
public class CompiledPageActionDescriptor : Microsoft.AspNetCore.Mvc.RazorPages.PageActionDescriptor
type CompiledPageActionDescriptor = class
    inherit PageActionDescriptor
Public Class CompiledPageActionDescriptor
Inherits PageActionDescriptor
Inheritance
CompiledPageActionDescriptor

Constructors

CompiledPageActionDescriptor()

Initializes an empty CompiledPageActionDescriptor.

CompiledPageActionDescriptor(PageActionDescriptor)

Initializes a new instance of CompiledPageActionDescriptor from the specified actionDescriptor instance.

Properties

ActionConstraints

The set of constraints for this action. Must all be satisfied for the action to be selected.

(Inherited from ActionDescriptor)
AreaName

Gets or sets the area name for this page. This value will be null for non-area pages.

(Inherited from PageActionDescriptor)
AttributeRouteInfo

Gets or sets the AttributeRouteInfo.

(Inherited from ActionDescriptor)
BoundProperties

The set of properties which are model bound.

(Inherited from ActionDescriptor)
DeclaredModelTypeInfo

Gets or sets the declared model TypeInfo of the model for the page. Typically this TypeInfo will be the type specified by the @model directive in the razor page.

DisplayName

A friendly name for this action.

(Inherited from PageActionDescriptor)
Endpoint

Gets or sets the associated Endpoint of this page.

EndpointMetadata

Gets or sets the endpoint metadata for this action. This API is meant for infrastructure and should not be used by application code.

(Inherited from ActionDescriptor)
FilterDescriptors

The set of filters associated with this action.

(Inherited from ActionDescriptor)
HandlerMethods

Gets the list of handler methods for the page.

HandlerTypeInfo

Gets or sets the TypeInfo of the type that defines handler methods for the page. This can be the same as PageTypeInfo and ModelTypeInfo if the page does not have an explicit model type defined.

Id

Gets an id which uniquely identifies the action.

(Inherited from ActionDescriptor)
ModelTypeInfo

Gets or sets the runtime model TypeInfo of the model for the razor page. This is the TypeInfo that will be used at runtime to instantiate and populate the model property of the page.

PageTypeInfo

Gets or sets the TypeInfo of the page.

Parameters

The set of parameters associated with this action.

(Inherited from ActionDescriptor)
Properties

Stores arbitrary metadata properties associated with the ActionDescriptor.

(Inherited from ActionDescriptor)
RelativePath

Gets or sets the application root relative path for the page.

(Inherited from PageActionDescriptor)
RouteValues

Gets or sets the collection of route values that must be provided by routing for the action to be selected.

(Inherited from ActionDescriptor)
ViewEnginePath

Gets or sets the path relative to the base path for page discovery.

This value is the path of the file without extension, relative to the pages root directory. e.g. the ViewEnginePath for the file /Pages/Catalog/Antiques.cshtml is /Catalog/Antiques

In an area, this value is the path of the file without extension, relative to the pages root directory for the specified area. e.g. the ViewEnginePath for the file Areas/Identity/Pages/Manage/Accounts.cshtml, is /Manage/Accounts.

(Inherited from PageActionDescriptor)

Extension Methods

GetProperty<T>(ActionDescriptor)

Gets the value of a property from the Properties collection using the provided value of T as the key.

SetProperty<T>(ActionDescriptor, T)

Sets the value of an property in the Properties collection using the provided value of T as the key.

Applies to