Delen via


PageActionDescriptor Class

Definition

Describes a page action.

public ref class PageActionDescriptor : Microsoft::AspNetCore::Mvc::Abstractions::ActionDescriptor
public class PageActionDescriptor : Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor
type PageActionDescriptor = class
    inherit ActionDescriptor
Public Class PageActionDescriptor
Inherits ActionDescriptor
Inheritance
PageActionDescriptor
Derived

Constructors

PageActionDescriptor()

Initializes a new instance of PageActionDescriptor.

PageActionDescriptor(PageActionDescriptor)

A copy constructor for PageActionDescriptor.

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.

AttributeRouteInfo

Gets or sets the AttributeRouteInfo.

(Inherited from ActionDescriptor)
BoundProperties

The set of properties which are model bound.

(Inherited from ActionDescriptor)
DisplayName

A friendly name for this action.

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)
Id

Gets an id which uniquely identifies the action.

(Inherited from ActionDescriptor)
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.

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.

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