ControllerModel Class¶
- Namespace
Microsoft.AspNetCore.Mvc.ApplicationModels- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Syntax¶
[DebuggerDisplay("Name={ControllerName}, Type={ControllerType.Name}")]
public class ControllerModel : ICommonModel, IPropertyModel, IFilterModel, IApiExplorerModel
-
class
Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel
Constructors¶
-
ControllerModel(Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel)¶ public ControllerModel(ControllerModel other)
-
ControllerModel(System.Reflection.TypeInfo, System.Collections.Generic.IReadOnlyList<System.Object>) public ControllerModel(TypeInfo controllerType, IReadOnlyList<object> attributes)
-
Properties¶
-
Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel.Actions¶ Return type: System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ApplicationModels.ActionModel> public IList<ActionModel> Actions { get; }
-
Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel.ApiExplorer¶ Gets or sets the
Microsoft.AspNetCore.Mvc.ApplicationModels.ApiExplorerModelfor this controller.Return type: Microsoft.AspNetCore.Mvc.ApplicationModels.ApiExplorerModel public ApiExplorerModel ApiExplorer { get; set; }
-
Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel.Application¶ Return type: Microsoft.AspNetCore.Mvc.ApplicationModels.ApplicationModel public ApplicationModel Application { get; set; }
-
Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel.Attributes¶ Return type: System.Collections.Generic.IReadOnlyList<System.Object> public IReadOnlyList<object> Attributes { get; }
-
Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel.ControllerName¶ Return type: System.String public string ControllerName { get; set; }
-
Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel.ControllerProperties¶ Return type: System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ApplicationModels.PropertyModel> public IList<PropertyModel> ControllerProperties { get; }
-
Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel.ControllerType¶ Return type: System.Reflection.TypeInfo public TypeInfo ControllerType { get; }
-
Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel.Filters¶ Return type: System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata> public IList<IFilterMetadata> Filters { get; }
-
Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel.MemberInfo¶ Return type: System.Reflection.MemberInfo MemberInfo ICommonModel.MemberInfo { get; }
-
Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel.Name¶ Return type: System.String string ICommonModel.Name { get; }
-
Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel.Properties¶ Gets a set of properties associated with the controller. 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.ControllerModel.RouteValues¶ Gets a collection of route values that must be present in the
Microsoft.AspNetCore.Routing.RouteData.Valuesfor the corresponding action to be selected.Return type: System.Collections.Generic.IDictionary<System.String> public IDictionary<string, string> RouteValues { get; }
-
Microsoft.AspNetCore.Mvc.ApplicationModels.ControllerModel.Selectors¶ Return type: System.Collections.Generic.IList<Microsoft.AspNetCore.Mvc.ApplicationModels.SelectorModel> public IList<SelectorModel> Selectors { get; }
-