ActionModel Class

Namespace
Microsoft.AspNetCore.Mvc.ApplicationModels
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

Syntax

[DebuggerDisplay("{Controller.ControllerType.Name}.{ActionMethod.Name}")]
public class ActionModel : ICommonModel, IPropertyModel, IFilterModel, IApiExplorerModel
class Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel

Constructors

ActionModel(Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel)
public ActionModel(ActionModel other)
ActionModel(System.Reflection.MethodInfo, System.Collections.Generic.IReadOnlyList<System.Object>)
public ActionModel(MethodInfo actionMethod, IReadOnlyList<object> attributes)

Properties

Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel.ActionMethod
Return type:System.Reflection.MethodInfo
public MethodInfo ActionMethod { get; }
Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel.ActionName
Return type:System.String
public string ActionName { get; set; }
Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel.ApiExplorer

Gets or sets the Microsoft.AspNetCore.Mvc.ApplicationModels.ApiExplorerModel for this action.

Return type:Microsoft.AspNetCore.Mvc.ApplicationModels.ApiExplorerModel
public ApiExplorerModel ApiExplorer { get; set; }
Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel.Attributes
Return type:System.Collections.Generic.IReadOnlyList<System.Object>
public IReadOnlyList<object> Attributes { get; }
Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel.Controller
Return type:Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel
public ControllerModel Controller { get; set; }
Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel.Filters
Return type:System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata>
public IList<IFilterMetadata> Filters { get; }
Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel.MemberInfo
Return type:System.Reflection.MemberInfo
MemberInfo ICommonModel.MemberInfo { get; }
Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel.Name
Return type:System.String
string ICommonModel.Name { get; }
Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel.Parameters
Return type:System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ApplicationModels.ParameterModel>
public IList<ParameterModel> Parameters { get; }
Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel.Properties

Gets a set of properties associated with the action. These properties will be copied to Microsoft.AspNetCore.Mvc.Abstractions.ActionDescriptor.Properties.

Return type:System.Collections.Generic.IDictionary<System.Object>
public IDictionary<object, object> Properties { get; }
Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel.RouteValues

Gets a collection of route values that must be present in the Microsoft.AspNetCore.Routing.RouteData.Values for the corresponding action to be selected.

Return type:System.Collections.Generic.IDictionary<System.String>
public IDictionary<string, string> RouteValues { get; }
Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel.Selectors
Return type:System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ApplicationModels.SelectorModel>
public IList<SelectorModel> Selectors { get; }