Microsoft.AspNetCore.Mvc.Core
Specifies what HTTP methods an action supports.
Initializes a new instance of the class.
The HTTP method the action supports.
Initializes a new instance of the class.
The HTTP methods the action supports.
Gets the HTTP methods the action supports.
The route template. May be null.
Gets the route order. The order determines the order of route execution. Routes with a lower
order value are tried first. When a route doesn't specify a value, it gets the value of the
or a default value of 0 if the
doesn't define a value on the controller.
Specifies that a controller property should be set with the current
when creating the controller. The property must have a public
set method.
Specifies the name of an action.
Initializes a new instance.
The name of the action.
Gets the name of the action.
A default implementation of .
Executes the result operation of the action method asynchronously. This method is called by MVC to process
the result of an action method.
The default implementation of this method calls the method and
returns a completed task.
The context in which the result is executed. The context information includes
information about the action that was executed and request information.
A task that represents the asynchronous execute operation.
Executes the result operation of the action method synchronously. This method is called by MVC to process
the result of an action method.
The context in which the result is executed. The context information includes
information about the action that was executed and request information.
Controls the visibility and group name for an ApiDescription
of the associated controller class or action method.
Specifies the area containing a controller or action.
Initializes a new instance.
The area containing the controller or action.
An that when executed will produce a Bad Request (400) response.
Creates a new instance.
Contains the errors to be returned to the client.
Creates a new instance.
containing the validation errors.
A that when
executed will produce a Bad Request (400) response.
Creates a new instance.
This attribute can be used on action parameters and types, to indicate model level metadata.
Creates a new instace of .
Names of parameters to include in binding.
Gets the names of properties to include in model binding.
Allows a user to specify a particular prefix to match during model binding.
Represents the model name used during model binding.
Defines a set of settings which can be used for response caching.
Gets or sets the duration in seconds for which the response is cached.
If this property is set to a non null value,
the "max-age" in "Cache-control" header is set in the
.
Gets or sets the location where the data from a particular URL must be cached.
If this property is set to a non null value,
the "Cache-control" header is set in the .
Gets or sets the value which determines whether the data should be stored or not.
When set to , it sets "Cache-control" header in
to "no-store".
Ignores the "Location" parameter for values other than "None".
Ignores the "Duration" parameter.
Gets or sets the value for the Vary header in .
An that on execution invokes .
Initializes a new instance of .
Initializes a new instance of with the
specified authentication scheme.
The authentication scheme to challenge.
Initializes a new instance of with the
specified authentication schemes.
The authentication schemes to challenge.
Initializes a new instance of with the
specified .
used to perform the authentication
challenge.
Initializes a new instance of with the
specified authentication scheme and .
The authentication schemes to challenge.
used to perform the authentication
challenge.
Initializes a new instance of with the
specified authentication schemes and .
The authentication scheme to challenge.
used to perform the authentication
challenge.
Gets or sets the authentication schemes that are challenged.
Gets or sets the used to perform the authentication challenge.
A filter that specifies the supported request content types. is used to select an
action when there would otherwise be multiple matches.
Creates a new instance of .
Gets or sets the supported request content types. Used to select an action when there would otherwise be
multiple matches.
Gets or set the content representing the body of the response.
Gets or sets the Content-Type header for the response.
Gets or sets the HTTP status code.
Indicates that the type and any derived types that this attribute is applied to
are considered a controller by the default controller discovery mechanism, unless
is applied to any type in the hierarchy.
A base class for an MVC controller without view support.
Gets the for the executing action.
Gets the for the executing action.
Gets the for the executing action.
Gets the for the executing action.
Gets the that contains the state of the model and of model-binding validation.
Gets or sets the .
activates this property while activating controllers.
If user code directly instantiates a controller, the getter returns an empty
.
Gets or sets the .
Gets or sets the .
Gets or sets the .
Gets or sets the .
Gets or sets the for user associated with the executing action.
Creates a object by specifying a .
The status code to set on the response.
The created object for the response.
Creates a object by specifying a and
The status code to set on the response.
The value to set on the .
The created object for the response.
Creates a object by specifying a string.
The content to write to the response.
The created object for the response.
Creates a object by specifying a string
and a content type.
The content to write to the response.
The content type (MIME type).
The created object for the response.
Creates a object by specifying a string,
a , and .
The content to write to the response.
The content type (MIME type).
The content encoding.
The created object for the response.
If encoding is provided by both the 'charset' and the parameters, then
the parameter is chosen as the final encoding.
Creates a object by specifying a
string and a .
The content to write to the response.
The content type (MIME type).
The created object for the response.
Creates a object that produces an empty No Content (204) response.
The created object for the response.
Creates a object that produces an empty OK (200) response.
The created for the response.
Creates an object that produces an OK (200) response.
The content value to format in the entity body.
The created for the response.
Creates a object that redirects to the specified .
The URL to redirect to.
The created for the response.
Creates a object with set to true
using the specified .
The URL to redirect to.
The created for the response.
Creates a object that redirects to
the specified local .
The local URL to redirect to.
The created for the response.
Creates a object with
set to true using the specified .
The local URL to redirect to.
The created for the response.
Redirects to the specified action using the .
The name of the action.
The created for the response.
Redirects to the specified action using the
and .
The name of the action.
The parameters for a route.
The created for the response.
Redirects to the specified action using the
and the .
The name of the action.
The name of the controller.
The created for the response.
Redirects to the specified action using the specified ,
, and .
The name of the action.
The name of the controller.
The parameters for a route.
The created for the response.
Redirects to the specified action with set to true
using the specified .
The name of the action.
The created for the response.
Redirects to the specified action with set to true
using the specified and .
The name of the action.
The parameters for a route.
The created for the response.
Redirects to the specified action with set to true
using the specified and .
The name of the action.
The name of the controller.
The created for the response.
Redirects to the specified action with set to true
using the specified , ,
and .
The name of the action.
The name of the controller.
The parameters for a route.
The created for the response.
Redirects to the specified route using the specified .
The name of the route.
The created for the response.
Redirects to the specified route using the specified .
The parameters for a route.
The created for the response.
Redirects to the specified route using the specified
and .
The name of the route.
The parameters for a route.
The created for the response.
Redirects to the specified route with set to true
using the specified .
The name of the route.
The created for the response.
Redirects to the specified route with set to true
using the specified .
The parameters for a route.
The created for the response.
Redirects to the specified route with set to true
using the specified and .
The name of the route.
The parameters for a route.
The created for the response.
Returns a file with the specified as content and the
specified as the Content-Type.
The file contents.
The Content-Type of the file.
The created for the response.
Returns a file with the specified as content, the
specified as the Content-Type and the
specified as the suggested file name.
The file contents.
The Content-Type of the file.
The suggested file name.
The created for the response.
Returns a file in the specified with the
specified as the Content-Type.
The with the contents of the file.
The Content-Type of the file.
The created for the response.
Returns a file in the specified with the
specified as the Content-Type and the
specified as the suggested file name.
The with the contents of the file.
The Content-Type of the file.
The suggested file name.
The created for the response.
Returns the file specified by with the
specified as the Content-Type.
The virtual path of the file to be returned.
The Content-Type of the file.
The created for the response.
Returns the file specified by with the
specified as the Content-Type and the
specified as the suggested file name.
The virtual path of the file to be returned.
The Content-Type of the file.
The suggested file name.
The created for the response.
Returns the file specified by with the
specified as the Content-Type.
The physical path of the file to be returned.
The Content-Type of the file.
The created for the response.
Returns the file specified by with the
specified as the Content-Type and the
specified as the suggested file name.
The physical path of the file to be returned.
The Content-Type of the file.
The suggested file name.
The created for the response.
Creates an that produces an Unauthorized (401) response.
The created for the response.
Creates an that produces a Not Found (404) response.
The created for the response.
Creates an that produces a Not Found (404) response.
The created for the response.
Creates an that produces a Bad Request (400) response.
The created for the response.
Creates an that produces a Bad Request (400) response.
The created for the response.
Creates an that produces a Bad Request (400) response.
The created for the response.
Creates a object that produces a Created (201) response.
The URI at which the content has been created.
The content value to format in the entity body.
The created for the response.
Creates a object that produces a Created (201) response.
The URI at which the content has been created.
The content value to format in the entity body.
The created for the response.
Creates a object that produces a Created (201) response.
The name of the action to use for generating the URL.
The content value to format in the entity body.
The created for the response.
Creates a object that produces a Created (201) response.
The name of the action to use for generating the URL.
The route data to use for generating the URL.
The content value to format in the entity body.
The created for the response.
Creates a object that produces a Created (201) response.
The name of the action to use for generating the URL.
The name of the controller to use for generating the URL.
The route data to use for generating the URL.
The content value to format in the entity body.
The created for the response.
Creates a object that produces a Created (201) response.
The name of the route to use for generating the URL.
The content value to format in the entity body.
The created for the response.
Creates a object that produces a Created (201) response.
The route data to use for generating the URL.
The content value to format in the entity body.
The created for the response.
Creates a object that produces a Created (201) response.
The name of the route to use for generating the URL.
The route data to use for generating the URL.
The content value to format in the entity body.
The created for the response.
Creates a .
The created for the response.
Creates a with the specified authentication schemes.
The authentication schemes to challenge.
The created for the response.
Creates a with the specified .
used to perform the authentication
challenge.
The created for the response.
Creates a with the specified specified authentication schemes and
.
used to perform the authentication
challenge.
The authentication schemes to challenge.
The created for the response.
Creates a .
The created for the response.
Creates a with the specified authentication schemes.
The authentication schemes to challenge.
The created for the response.
Creates a with the specified .
used to perform the authentication
challenge.
The created for the response.
Creates a with the specified specified authentication schemes and
.
used to perform the authentication
challenge.
The authentication schemes to challenge.
The created for the response.
Creates a with the specified authentication scheme.
The containing the user claims.
The authentication scheme to use for the sign-in operation.
The created for the response.
Creates a with the specified specified authentication scheme and
.
The containing the user claims.
used to perform the sign-in operation.
The authentication scheme to use for the sign-in operation.
The created for the response.
Creates a with the specified authentication schemes.
The authentication schemes to use for the sign-out operation.
The created for the response.
Creates a with the specified specified authentication schemes and
.
used to perform the sign-out operation.
The authentication scheme to use for the sign-out operation.
The created for the response.
Updates the specified instance using values from the controller's current
.
The type of the model object.
The model instance to update.
A that on completion returns true if the update is successful.
Updates the specified instance using values from the controller's current
and a .
The type of the model object.
The model instance to update.
The prefix to use when looking up values in the current .
A that on completion returns true if the update is successful.
Updates the specified instance using the and a
.
The type of the model object.
The model instance to update.
The prefix to use when looking up values in the .
The used for looking up values.
A that on completion returns true if the update is successful.
Updates the specified instance using values from the controller's current
and a .
The type of the model object.
The model instance to update.
The prefix to use when looking up values in the current .
(s) which represent top-level properties
which need to be included for the current model.
A that on completion returns true if the update is successful.
Updates the specified instance using values from the controller's current
and a .
The type of the model object.
The model instance to update.
The prefix to use when looking up values in the current .
A predicate which can be used to filter properties at runtime.
A that on completion returns true if the update is successful.
Updates the specified instance using the and a
.
The type of the model object.
The model instance to update.
The prefix to use when looking up values in the .
The used for looking up values.
(s) which represent top-level properties
which need to be included for the current model.
A that on completion returns true if the update is successful.
Updates the specified instance using the and a
.
The type of the model object.
The model instance to update.
The prefix to use when looking up values in the .
The used for looking up values.
A predicate which can be used to filter properties at runtime.
A that on completion returns true if the update is successful.
Updates the specified instance using values from the controller's current
and a .
The model instance to update.
The type of model instance to update.
The prefix to use when looking up values in the current .
A that on completion returns true if the update is successful.
Updates the specified instance using the and a
.
The model instance to update.
The type of model instance to update.
The prefix to use when looking up values in the .
The used for looking up values.
A predicate which can be used to filter properties at runtime.
A that on completion returns true if the update is successful.
Validates the specified instance.
The model to validate.
true if the is valid; false otherwise.
Validates the specified instance.
The model to validate.
The key to use when looking up information in .
true if the is valid;false otherwise.
The context associated with the current request for a controller.
Creates a new .
The default constructor is provided for unit test purposes only.
Creates a new .
The associated with the current request.
Gets or sets the associated with the current request.
Gets or sets the list of instances for the current request.
Specifies that a controller property should be set with the current
when creating the controller. The property must have a public
set method.
An that returns a Created (201) response with a Location header.
Initializes a new instance of the with the values
provided.
The name of the action to use for generating the URL.
The name of the controller to use for generating the URL.
The route data to use for generating the URL.
The value to format in the entity body.
Gets or sets the used to generate URLs.
Gets or sets the name of the action to use for generating the URL.
Gets or sets the name of the controller to use for generating the URL.
Gets or sets the route data to use for generating the URL.
An that returns a Created (201) response with a Location header.
Initializes a new instance of the class with the values
provided.
The route data to use for generating the URL.
The value to format in the entity body.
Initializes a new instance of the class with the values
provided.
The name of the route to use for generating the URL.
The route data to use for generating the URL.
The value to format in the entity body.
Gets or sets the used to generate URLs.
Gets or sets the name of the route to use for generating the URL.
Gets or sets the route data to use for generating the URL.
An that returns a Created (201) response with a Location header.
Initializes a new instance of the class with the values
provided.
The location at which the content has been created.
The value to format in the entity body.
Initializes a new instance of the class with the values
provided.
The location at which the content has been created.
The value to format in the entity body.
Gets or sets the location at which the content has been created.
Represents an that when executed will
do nothing.
Represents an that when executed will
write a binary file to the response.
Creates a new instance with
the provided and the
provided .
The bytes that represent the file contents.
The Content-Type header of the response.
Creates a new instance with
the provided and the
provided .
The bytes that represent the file contents.
The Content-Type header of the response.
Gets or sets the file contents.
Represents an that when executed will
write a file as the response.
Creates a new instance with
the provided .
The Content-Type header of the response.
Gets the Content-Type header for the response.
Gets the file name that will be used in the Content-Disposition header of the response.
Represents an that when executed will
write a file from a stream to the response.
Creates a new instance with
the provided and the
provided .
The stream with the file.
The Content-Type header of the response.
Creates a new instance with
the provided and the
provided .
The stream with the file.
The Content-Type header of the response.
Gets or sets the stream with the file that will be sent back as the response.
An that on execution invokes .
Initializes a new instance of .
Initializes a new instance of with the
specified authentication scheme.
The authentication scheme to challenge.
Initializes a new instance of with the
specified authentication schemes.
The authentication schemes to challenge.
Initializes a new instance of with the
specified .
used to perform the authentication
challenge.
Initializes a new instance of with the
specified authentication scheme and .
The authentication schemes to challenge.
used to perform the authentication
challenge.
Initializes a new instance of with the
specified authentication schemes and .
The authentication scheme to challenge.
used to perform the authentication
challenge.
Gets or sets the authentication schemes that are challenged.
Gets or sets the used to perform the authentication challenge.
A filter that will use the format value in the route data or query string to set the content type on an
returned from an action.
Creates an instance of .
The .
An instance of .
Specifies that a parameter or property should be bound using the request body.
Specifies that a parameter or property should be bound using form-data in the request body.
Specifies that a parameter or property should be bound using the request headers.
Specifies that a parameter or property should be bound using the request query string.
Specifies that a parameter or property should be bound using route-data from the current request.
Specifies that an action parameter should be bound using the request services.
In this example an implementation of IProductModelRequestService is registered as a service.
Then in the GetProduct action, the parameter is bound to an instance of IProductModelRequestService
which is resolved from the request services.
[HttpGet]
public ProductModel GetProduct([FromServices] IProductModelRequestService productModelReqest)
{
return productModelReqest.Value;
}
Identifies an action that only supports the HTTP DELETE method.
Creates a new .
Creates a new with the given route template.
The route template. May not be null.
Identifies an action that only supports the HTTP GET method.
Creates a new .
Creates a new with the given route template.
The route template. May not be null.
Identifies an action that only supports the HTTP HEAD method.
Creates a new .
Creates a new with the given route template.
The route template. May not be null.
Identifies an action that only supports the HTTP OPTIONS method.
Creates a new .
Creates a new with the given route template.
The route template. May not be null.
Identifies an action that only supports the HTTP PATCH method.
Creates a new .
Creates a new with the given route template.
The route template. May not be null.
Identifies an action that only supports the HTTP POST method.
Creates a new .
Creates a new with the given route template.
The route template. May not be null.
Identifies an action that only supports the HTTP PUT method.
Creates a new .
Creates a new with the given route template.
The route template. May not be null.
An that returns a redirect to the supplied local URL.
Initializes a new instance of the class with the values
provided.
The local URL to redirect to.
Initializes a new instance of the class with the values
provided.
The local URL to redirect to.
Specifies whether the redirect should be permanent (301) or temporary (302).
Gets or sets the value that specifies that the redirect should be permanent if true or temporary if false.
Gets or sets the local URL to redirect to.
Gets or sets the for this result.
An attribute that can specify a model name or type of to use for binding.
This attribute specifies the metadata class to associate with a data model class.
Initializes a new instance of the class.
The type of metadata class that is associated with a data model class.
Gets the type of metadata class that is associated with a data model class.
Provides programmatic configuration for the MVC framework.
Gets a Dictionary of CacheProfile Names, which are pre-defined settings for
response caching.
Gets a list of instances that will be applied to
the when discovering actions.
Gets a collection of which are used to construct filters that
apply to all actions.
Used to specify mapping between the URL Format and corresponding media type.
Gets a list of s that are used by this application.
Gets or sets the maximum number of validation errors that are allowed by this application before further
errors are ignored.
Gets a list of s used by this application.
Gets the default . Changes here are copied to the
property of all
instances unless overridden in a custom .
Gets a list of instances that will be used to
create instances.
A provider should implement one or more of the following interfaces, depending on what
kind of details are provided:
Gets a list of s used by this application.
Gets a list of s that are used by this application.
Gets or sets the flag which causes content negotiation to ignore Accept header
when it contains the media type */*. by default.
Gets or sets the flag which decides whether an HTTP 406 Not Acceptable response
will be returned if no formatter has been selected to format the response.
by default.
Gets a list of used by this application.
Gets or sets the SSL port that is used by this application when
is used. If not set the port won't be specified in the secured URL e.g. https://localhost/path.
Indicates that a controller method is not an action method.
Indicates that the type and any derived types that this attribute is applied to
is not considered a controller by the default controller discovery mechanism.
An that when executed will produce a Not Found (404) response.
Creates a new instance.
The value to format in the entity body.
Represents an that when
executed will produce a Not Found (404) response.
Creates a new instance.
Gets or sets the HTTP status code.
This method is called before the formatter writes to the output stream.
An that when executed performs content negotiation, formats the entity body, and
will produce a response if negotiation and formatting succeed.
Initializes a new instance of the class.
The content to format into the entity body.
An that when executed will produce an empty
response.
Initializes a new instance of the class.
A on execution will write a file from disk to the response
using mechanisms provided by the host.
Creates a new instance with
the provided and the provided .
The path to the file. The path must be an absolute path.
The Content-Type header of the response.
Creates a new instance with
the provided and the provided .
The path to the file. The path must be an absolute path.
The Content-Type header of the response.
Gets or sets the path to the file that will be sent back as the response.
A filter that specifies the expected the action will return and the supported
response content types. The value is used to set
.
Initializes an instance of .
The of object that is going to be written in the response.
Initializes an instance of with allowed content types.
The allowed content type for a response.
Additional allowed content types for a response.
Gets or sets the supported response content types. Used to set .
A filter that specifies the type of the value and status code returned by the action.
Initializes an instance of .
The of object that is going to be written in the response.
The HTTP response status code.
Gets or sets the type of the value returned by an action.
Gets or sets the HTTP status code of the response.
Gets or sets the used to generate URLs.
Gets or sets the name of the action to use for generating the URL.
Gets or sets the name of the controller to use for generating the URL.
Gets or sets the route data to use for generating the URL.
Gets or sets the used to generate URLs.
Gets or sets the name of the route to use for generating the URL.
Gets or sets the route data to use for generating the URL.
An authorization filter that confirms requests are received over HTTPS.
Specifies whether a permanent redirect, 301 Moved Permanently,
should be used instead of a temporary redirect, 302 Found.
Called early in the filter pipeline to confirm request is authorized. Confirms requests are received over
HTTPS. Takes no action for HTTPS requests. Otherwise if it was a GET request, sets
to a result which will redirect the client to the HTTPS
version of the request URI. Otherwise, sets to a result
which will set the status code to 403 (Forbidden).
Called from if the request is not received over HTTPS. Expectation is
will not be null after this method returns.
The to update.
If it was a GET request, default implementation sets to a
result which will redirect the client to the HTTPS version of the request URI. Otherwise, default
implementation sets to a result which will set the status
code to 403 (Forbidden).
Specifies the parameters necessary for setting appropriate headers in response caching.
Gets or sets the duration in seconds for which the response is cached.
This sets "max-age" in "Cache-control" header.
Gets or sets the location where the data from a particular URL must be cached.
Gets or sets the value which determines whether the data should be stored or not.
When set to , it sets "Cache-control" header to "no-store".
Ignores the "Location" parameter for values other than "None".
Ignores the "duration" parameter.
Gets or sets the value for the Vary response header.
Gets or sets the value of the cache profile name.
Determines the value for the "Cache-control" header in the response.
Cached in both proxies and client.
Sets "Cache-control" header to "public".
Cached only in the client.
Sets "Cache-control" header to "private".
"Cache-control" and "Pragma" headers are set to "no-cache".
Specifies an attribute route on a controller.
Creates a new with the given route template.
The route template. May not be null.
Gets the route order. The order determines the order of route execution. Routes with a lower order
value are tried first. If an action defines a route by providing an
with a non null order, that order is used instead of this value. If neither the action nor the
controller defines an order, a default value of 0 is used.
Defines a serializable container for storing ModelState information.
This information is stored as key/value pairs.
Initializes a new instance of the class.
Creates a new instance of .
containing the validation errors.
A filter that finds another filter in an .
Primarily used in calls.
Similar to the in that both use constructor injection. Use
instead if the filter is not itself a service.
Instantiates a new instance.
The of filter to find.
Gets the of filter to find.
An that on execution invokes .
Initializes a new instance of with the
specified authentication scheme.
The authentication scheme to use when signing in the user.
The claims principal containing the user claims.
Initializes a new instance of with the
specified authentication scheme and .
The authentication schemes to use when signing in the user.
The claims principal containing the user claims.
used to perform the sign-in operation.
Gets or sets the authentication scheme that is used to perform the sign-in operation.
Gets or sets the containing the user claims.
Gets or sets the used to perform the sign-in operation.
An that on execution invokes .
Initializes a new instance of with the
specified authentication scheme.
The authentication scheme to use when signing out the user.
Initializes a new instance of with the
specified authentication schemes.
The authentication schemes to use when signing out the user.
Initializes a new instance of with the
specified authentication scheme and .
The authentication schemes to use when signing out the user.
used to perform the sign-out operation.
Initializes a new instance of with the
specified authentication schemes and .
The authentication scheme to use when signing out the user.
used to perform the sign-out operation.
Gets or sets the authentication schemes that are challenged.
Gets or sets the used to perform the sign-out operation.
Represents an that when executed will
produce an HTTP response with the given response status code.
Initializes a new instance of the class
with the given .
The HTTP status code of the response.
Gets the HTTP status code.
A filter that creates another filter of type , retrieving missing constructor
arguments from dependency injection if available there.
Primarily used in calls.
Similar to the in that both use constructor injection. Use
instead if the filter is itself a service.
Instantiates a new instance.
The of filter to create.
Gets or sets the non-service arguments to pass to the constructor.
Service arguments are found in the dependency injection container i.e. this filter supports constructor
injection in addition to passing the given .
Gets the of filter to create.
Represents an that when
executed will produce an Unauthorized (401) response.
Creates a new instance.
A that when
executed will produce a UnsupportedMediaType (415) response.
Creates a new instance of .
Generates a fully qualified or absolute URL for an action method.
The fully qualified or absolute URL to an action method.
Generates a fully qualified or absolute URL for an action method by using the specified action name.
The .
The name of the action method.
The fully qualified or absolute URL to an action method.
Generates a fully qualified or absolute URL for an action method by using the specified action name,
and route values.
The .
The name of the action method.
An object that contains route values.
The fully qualified or absolute URL to an action method.
Generates a fully qualified or absolute URL for an action method by using the specified action name,
and controller name.
The .
The name of the action method.
The name of the controller.
The fully qualified or absolute URL to an action method.
Generates a fully qualified or absolute URL for an action method by using the specified action name,
controller name, and route values.
The .
The name of the action method.
The name of the controller.
An object that contains route values.
The fully qualified or absolute URL to an action method.
Generates a fully qualified or absolute URL for an action method by using the specified action name,
controller name, route values, and protocol to use.
The .
The name of the action method.
The name of the controller.
An object that contains route values.
The protocol for the URL, such as "http" or "https".
The fully qualified or absolute URL to an action method.
Generates a fully qualified or absolute URL for an action method by using the specified action name,
controller name, route values, protocol to use, and host name.
The .
The name of the action method.
The name of the controller.
An object that contains route values.
The protocol for the URL, such as "http" or "https".
The host name for the URL.
The fully qualified or absolute URL to an action method.
Generates a fully qualified or absolute URL for an action method by using the specified action name,
controller name, route values, protocol to use, host name and fragment.
The .
The name of the action method.
The name of the controller.
An object that contains route values.
The protocol for the URL, such as "http" or "https".
The host name for the URL.
The fragment for the URL.
The fully qualified or absolute URL to an action method.
Generates a fully qualified or absolute URL for the specified route values.
The .
An object that contains route values.
The fully qualified or absolute URL.
Generates a fully qualified or absolute URL for the specified route name.
The .
The name of the route that is used to generate URL.
The fully qualified or absolute URL.
Generates a fully qualified or absolute URL for the specified route values by
using the specified route name.
The .
The name of the route that is used to generate URL.
An object that contains route values.
The fully qualified or absolute URL.
Generates a fully qualified or absolute URL for the specified route values by
using the specified route name, and protocol to use.
The .
The name of the route that is used to generate URL.
An object that contains route values.
The protocol for the URL, such as "http" or "https".
The fully qualified or absolute URL.
Generates a fully qualified or absolute URL for the specified route values by
using the specified route name, protocol to use, and host name.
The .
The name of the route that is used to generate URL.
An object that contains route values.
The protocol for the URL, such as "http" or "https".
The host name for the URL.
The fully qualified or absolute URL.
Generates a fully qualified or absolute URL for the specified route values by
using the specified route name, protocol to use, host name and fragment.
The .
The name of the route that is used to generate URL.
An object that contains route values.
The protocol for the URL, such as "http" or "https".
The host name for the URL.
The fragment for the URL.
The fully qualified or absolute URL.
A that on execution writes the file specified using a virtual path to the response
using mechanisms provided by the host.
Creates a new instance with the provided
and the provided .
The path to the file. The path must be relative/virtual.
The Content-Type header of the response.
Creates a new instance with
the provided and the
provided .
The path to the file. The path must be relative/virtual.
The Content-Type header of the response.
Gets or sets the path to the file that will be sent back as the response.
Gets or sets the used to resolve paths.
Base class for attributes which can implement conditional logic to enable or disable an action
for a given request. See .
Determines whether the action selection is valid for the specified route context.
The route context.
Information about the action.
if the action selection is valid for the specified context;
otherwise, .
Represents group name metadata for an ApiDescription.
The group name for the ApiDescription of the associated action or controller.
Represents visibility metadata for an ApiDescription.
If false then no ApiDescription objects will be created for the associated controller
or action.
Provides metadata information about the request format to an IApiDescriptionProvider.
An should implement this interface to expose metadata information
to an IApiDescriptionProvider.
Gets a filtered list of content types which are supported by the
for the and .
The content type for which the supported content types are desired, or null if any content
type can be used.
The for which the supported content types are desired.
Content types which are supported by the .
Provides a a set of possible content types than can be consumed by the action.
Configures a collection of allowed content types which can be consumed by the action.
The
Provides a return type, status code and a set of possible content types returned by a
successful execution of the action.
Gets the optimistic return type of the action.
Gets the HTTP status code of the response.
Configures a collection of allowed content types which can be produced by the action.
Provides metadata information about the response format to an IApiDescriptionProvider.
An should implement this interface to expose metadata information
to an IApiDescriptionProvider.
Gets a filtered list of content types which are supported by the
for the and .
The content type for which the supported content types are desired, or null if any content
type can be used.
The for which the supported content types are desired.
Content types which are supported by the .
Gets or sets the for this action.
allows configuration of settings for ApiExplorer
which apply to the action.
Settings applied by override settings from
and .
Gets a collection of route values that must be present in the
for the corresponding action to be selected.
The value of is considered an implicit route value corresponding
to the key action and the value of is
considered an implicit route value corresponding to the key controller. These entries
will be added to , but will not be visible in
.
Entries in can override entries in
.
Gets a set of properties associated with the action.
These properties will be copied to .
Entries will take precedence over entries with the same key in
and .
A model for ApiExplorer properties associated with a controller or action.
Creates a new .
Creates a new with properties copied from .
The to copy.
If true, APIExplorer.ApiDescription objects will be created for the associated
controller or action.
Set this value to configure whether or not the associated controller or action will appear in ApiExplorer.
The value for APIExplorer.ApiDescription.GroupName of
APIExplorer.ApiDescription objects created for the associated controller or action.
Gets or sets the for the application.
allows configuration of default settings
for ApiExplorer that apply to all actions unless overridden by
or .
If using to set to
true, this setting will only be honored for actions which use attribute routing.
Gets a set of properties associated with all actions.
These properties will be copied to .
A context object for .
Gets the .
Combines two instances and returns
a new instance with the result.
The left .
The right .
A new instance of that represents the
combination of the two instances or null if both
parameters are null.
Gets or sets the for this controller.
allows configuration of settings for ApiExplorer
which apply to all actions in the controller unless overridden by .
Settings applied by override settings from
.
Gets a collection of route values that must be present in the
for the corresponding action to be selected.
Entries in can be overridden by entries in
.
Gets a set of properties associated with the controller.
These properties will be copied to .
Entries will take precedence over entries with the same key
in .
Allows customization of the of the .
To use this interface, create an class which implements the interface and
place it on an action method.
customizations run after
customications and before
customizations.
Called to apply the convention to the .
The .
Allows customization of the of the .
Implementaions of this interface can be registered in
to customize metadata about the application.
run before other types of customizations to the
reflected model.
Called to apply the convention to the .
The .
Builds or modifies an for action discovery.
Gets the order value for determining the order of execution of providers. Providers execute in
ascending numeric value of the property.
Providers are executed in an ordering determined by an ascending sort of the property.
A provider with a lower numeric value of will have its
called before that of a provider with a higher numeric value of
. The method is called in the reverse ordering after
all calls to . A provider with a lower numeric value of
will have its method called after that of a provider
with a higher numeric value of .
If two providers have the same numeric value of , then their relative execution order
is undefined.
Executed for the first pass of building. See .
The .
Executed for the second pass of building. See .
The .
Allows customization of the of the .
To use this interface, create an class which implements the interface and
place it on a controller class.
customizations run after
customizations and before
customizations.
Called to apply the convention to the .
The .
Allows customization of the of the .
To use this interface, create an class which implements the interface and
place it on an action method parameter.
customizations run after
customizations.
Called to apply the convention to the .
The .
A type which is used to represent a property in a .
Creates a new instance of .
The for the underlying property.
Any attributes which are annotated on the property.
Creats a new instance of from a given .
The which needs to be copied.
Gets or sets the this is associated with.
Gets any attributes which are annotated on the property.
Gets or sets the associated with this model.
Gets the underlying .
Gets or sets the name of the property represented by this model.
A part of an MVC application.
Gets the name.
Manages the parts and features of an MVC application.
Gets the list of s.
Gets the list of s.
Populates the given using the list of
s configured on the
.
The type of the feature.
The feature instance to populate.
An backed by an .
Initalizes a new instance.
Gets the of the .
Gets the name of the .
Marker interface for
implementations.
A provider for a given feature.
The type of the feature.
Updates the intance.
The list of s of the
application.
The feature instance to populate.
Exposes a set of types from an .
Gets the list of available types in the .
Exposes one or more reference paths from an .
Gets reference paths used to perform runtime compilation.
An implementation of
An implementation of which applies a specific
. MVC recognizes the and adds an instance of
this filter to the associated action or controller.
Initialize a new instance.
Authorization policy to be used.
Initialize a new instance.
The to use to resolve policy names.
The to combine into an .
The to use to resolve policy names.
The to combine into an .
Gets the authorization policy to be used. If null, the policy will be constructed via
AuthorizePolicy.CombineAsync(PolicyProvider, AuthorizeData)
A descriptor for model bound properties of a controller.
Gets or sets the for this property.
The list of controllers types in an MVC application. The can be populated
using the that is available during startup at
and or at a later stage by requiring the
as a dependency in a component.
Gets the list of controller types in an MVC application.
Discovers controllers from a list of instances.
Determines if a given is a controller.
The candidate.
true
if the type is a controller; otherwise false
.
A descriptor for method parameters of an action method.
Gets or sets the .
that uses type activation to create controllers.
Creates a new .
The .
Default implementation for .
Initializes a new instance of .
used to create controller instances.
A set of instances used to initialize controller
properties.
The used to create a controller.
Provides methods to create a controller.
Creates a controller.
The for the executing action.
Releases a controller.
The for the executing action.
The controller to release.
Provides methods for creation and disposal of controllers.
Creates a new controller for the specified .
for the action to execute.
The controller.
Releases a controller instance.
for the executing action.
The controller.
A that retrieves controllers as services from the request's
.
An abstract filter that asynchronously surrounds execution of the action and the action result. Subclasses
should override , or
but not and either of the other two.
Similarly subclasses should override , or
but not and either of the other two.
An abstract filter that runs asynchronously after an action has thrown an . Subclasses
must override or but not both.
Adds a type representing an .
Type representing an .
An representing the added type.
Filter instances will be created using
.
Use to register a service as a filter.
Adds a type representing an .
Type representing an .
The order of the added filter.
An representing the added type.
Filter instances will be created using
.
Use to register a service as a filter.
Adds a type representing an .
Type representing an .
An representing the added service type.
Filter instances will created through dependency injection. Use
to register a service that will be created via
type activation.
Adds a type representing an .
Type representing an .
The order of the added filter.
An representing the added service type.
Filter instances will created through dependency injection. Use
to register a service that will be created via
type activation.
Contains constant values for known filter scopes.
Scope defines the ordering of filters that have the same order. Scope is by-default
defined by how a filter is registered.
An abstract filter that asynchronously surrounds execution of the action result. Subclasses
must override , or
but not and either of the other two.
A filter that will use the format value in the route data or query string to set the content type on an
returned from an action.
Initializes an instance of .
The
As a , this filter looks at the request and rejects it before going ahead if
1. The format in the request does not match any format in the map.
2. If there is a conflicting producesFilter.
The .
Sets a Content Type on an using a format value from the request.
The .
Used to specify mapping between the URL Format and corresponding media type.
Sets mapping for the format to specified media type.
If the format already exists, the media type will be overwritten with the new value.
The format value.
The media type for the format value.
Sets mapping for the format to specified media type.
If the format already exists, the media type will be overwritten with the new value.
The format value.
The media type for the format value.
Gets the media type for the specified format.
The format value.
The media type for input format.
Clears the media type mapping for the format.
The format value.
true if the format is successfully found and cleared; otherwise, false.
Sets the status code to 204 if the content is null.
Indicates whether to select this formatter if the returned value from the action
is null.
Reads an object from the request body.
Gets the mutable collection of media type elements supported by
this .
Gets the default value for a given type. Used to return a default value when the body contains no content.
The type of the value.
The default value for the type.
Determines whether this can deserialize an object of the given
.
The of object that will be read.
true if the can be read, otherwise false.
Reads an object from the request body.
The .
A that on completion deserializes the request body.
A media type value.
Initializes a instance.
The with the media type.
Initializes a instance.
The with the media type.
Initializes a instance.
The with the media type.
The offset in the where the parsing starts.
The of the media type to parse if provided.
Gets the type of the .
Gets whether this matches all types.
Gets the subtype of the .
Gets whether this matches all subtypes.
Gets the of the if it has one.
Gets the charset parameter of the if it has one.
Determines whether the current is a subset of the .
The set .
true
if this is a subset of ; otherwisefalse
.
Gets the parameter of the media type.
The name of the parameter to retrieve.
The for the given if found; otherwisenull
.
Gets the parameter of the media type.
The name of the parameter to retrieve.
The for the given if found; otherwisenull
.
Replaces the encoding of the given with the provided
.
The media type whose encoding will be replaced.
The encoding that will replace the encoding in the
A media type with the replaced encoding.
Replaces the encoding of the given with the provided
.
The media type whose encoding will be replaced.
The encoding that will replace the encoding in the
A media type with the replaced encoding.
Creates an containing the media type in
and its associated quality.
The media type to parse.
The position at which the parsing starts.
The parsed media type with its associated quality.
A collection of media types.
Initializes a new instance of .
Adds an object to the end of the .
The media type to be added to the end of the .
Inserts an element into the at the specified index.
The zero-based index at which should be inserted.
The media type to insert.
Removes the first occurrence of a specific media type from the .
true
if is successfully removed; otherwise, false
.
This method also returns false
if was not found in the original
.
Writes an object to the output stream.
Gets the mutable collection of media type elements supported by
this .
Returns a value indicating whether or not the given type can be written by this serializer.
The object type.
true if the type can be written, otherwise false.
Sets the headers on object.
The formatter context associated with the call.
Writes the response body.
The formatter context associated with the call.
A task which can write the response body.
Always copies the stream to the response, regardless of requested content type.
Always writes a string value to the response, regardless of requested content type.
Reads an object from a request body with a text format.
Returns UTF8 Encoding without BOM and throws on invalid bytes.
Returns UTF16 Encoding which uses littleEndian byte order with BOM and throws on invalid bytes.
Gets the mutable collection of character encodings supported by
this . The encodings are
used when reading the data.
Reads an object from the request body.
The .
The used to read the request body.
A that on completion deserializes the request body.
Returns an based on 's
character set.
The .
An based on 's
character set. null if no supported encoding was found.
Writes an object in a given text format to the output stream.
Initializes a new instance of the class.
Gets the mutable collection of character encodings supported by
this . The encodings are
used when writing the data.
Determines the best amongst the supported encodings
for reading or writing an HTTP entity body based on the provided content type.
The formatter context associated with the call.
The to use when reading the request or writing the response.
Writes the response body.
The formatter context associated with the call.
The that should be used to write the response.
A task which can write the response body.
A filter that produces the desired content type for the request.
Gets the format value for the request associated with the provided .
The associated with the current request.
A format value, or null if a format cannot be determined for the request.
A media type with its associated quality.
Initializes an instance of .
The containing the media type.
The quality parameter of the media type or 1 in the case it does not exist.
Gets the media type of this .
Gets the quality of this .
A cached collection of .
Initializes a new instance of the .
The result of action discovery
The unique version of discovered actions.
Returns the cached .
Returns the unique version of the currently cached items.
Provides the currently cached collection of .
The default implementation, does not update the cache, it is up to the user
to create or use an implementation that can update the available actions in
the application. The implementor is also responsible for updating the
in a thread safe way.
Default consumers of this service, are aware of the version and will recache
data as appropriate, but rely on the version being unique.
Returns the current cached
Defines an interface for selecting an MVC action to invoke for the current request.
Selects a set of candidates for the current request associated with
.
The associated with the current request.
A set of candidates or null.
Used by conventional routing to select the set of actions that match the route values for the
current request. Action constraints associated with the candidates are not invoked by this method
Attribute routing does not call this method.
Selects the best candidate from for the
current request associated with .
The associated with the current request.
The set of candidates.
The best candidate for the current request or null.
Thrown when action selection results in an ambiguity.
Invokes action constraints associated with the candidates.
Used by conventional routing after calling to apply action constraints and
disambiguate between multiple candidates.
Used by attribute routing to apply action constraints and disambiguate between multiple candidates.
Default implementation of .
This implementation caches the results at first call, and is not responsible for updates.
Initializes a new instance of the class.
The application IServiceProvider.
Returns a cached collection of .
Creates a new .
The .
A default implementation.
Creates a new .
The .
The that
providers a set of instances.
The .
Returns the set of best matching actions.
The set of actions that satisfy all constraints.
A list of the best matching actions.
Creates a new .
The .
An exception which indicates multiple matches in action selection.
Represents data used to build an ApiDescription, stored as part of the
.
The ApiDescription.GroupName of ApiDescription objects for the associated
action.
Applies conventions to a .
Applies conventions to a .
The .
The set of conventions.
Creates an attribute route using the provided services and provided target router.
The application services.
An attribute route.
Creates instances of from .
Creates instances of from .
The .
The list of .
A filter implementation which delegates to the controller for action filter interfaces.
A one-way cursor for filters.
This will iterate the filter collection once per-stage, and skip any filters that don't have
the one of interfaces that applies to the current stage.
Filters are always executed in the following order, but short circuiting plays a role.
Indentation reflects nesting.
1. Exception Filters
2. Authorization Filters
3. Action Filters
Action
4. Result Filters
Result
A filter implementation which delegates to the controller for result filter interfaces.
A default implementation of .
This provider is able to provide an instance when the
implements or
/
Creates a for the given .
The .
A for the given .
Creates a for the given .
The .
A for the given .
Creates the instance for the given action .
The controller .
The action .
An instance for the given action or
null if the does not represent an action.
Returns true if the is an action. Otherwise false.
The .
The .
true if the is an action. Otherwise false.
Override this method to provide custom logic to determine which methods are considered actions.
Creates a for the given .
The .
A for the given .
A default implementation of .
The default implementation of for a collection.
This implementation handles cases like:
Model: IList<Student>
Query String: ?students[0].Age=8&students[1].Age=9
In this case the elements of the collection are identified in the input data set by an incrementing
integer index.
or:
Model: IDictionary<string, int>
Query String: ?students[0].Key=Joey&students[0].Value=8
In this case the dictionary is treated as a collection of key-value pairs, and the elements of the
collection are identified in the input data set by an incrementing integer index.
Using this key format, the enumerator enumerates model objects of type matching
. The indices of the elements in the collection are used to
compute the model prefix keys.
Gets an instance of .
The default implementation of for a complex object.
Gets an instance of .
A default implementation of .
Creates a new .
The set of instances.
Provides a default implementation of .
Uses ModelBinding to populate action parameters.
A default .
The provides validators from
instances in .
The default implementation of .
Initializes a new instance of .
The .
The list of .
A default implementation of .
An implementation of for a collection bound using 'explict indexing'
style keys.
This implemenation handles cases like:
Model: IList<Student>
Query String: ?students.index=Joey,Katherine&students[Joey].Age=8&students[Katherine].Age=9
In this case, 'Joey' and 'Katherine' need to be used in the model prefix keys, but cannot be inferred
form inspecting the collection. These prefixes are captured during model binding, and mapped to
the corresponding ordinal index of a model object in the collection. The enumerator returned from this
class will yield two 'Student' objects with corresponding keys 'students[Joey]' and 'students[Katherine]'.
Using this key format, the enumerator enumerates model objects of type matching
. The keys captured during model binding are mapped to the elements
in the collection to compute the model prefix keys.
Creates a new .
The keys of collection elements that were used during model binding.
Gets the keys of collection elements that were used during model binding.
Stores an for the current value of
.
Gets the .
An constraint that identifies a type which can be used to select an action
based on incoming request.
Provides a dictionary of action arguments.
Asyncronously binds a dictionary of the parameter-argument name-value pairs,
which can be used to invoke the action. Also binds properties explicitly marked properties on the
.
The associated with the current action.
The controller object which contains the action.
The arguments dictionary.
A which, when completed signals the completion of argument binding.
Creates instances for reading from .
Creates a new .
The , usually .
The , usually .
A .
Creates instances for writing to .
Creates a new .
The , usually .
The , usually .
A .
An which sets the appropriate headers related to Response caching.
Caches instances produced by
.
Creates an instance of .
The used to resolve dependencies for
.
The of the to create.
An that uses pooled buffers.
The default size of created char buffers.
Creates a new .
The for creating buffers.
The for creating buffers.
An that uses pooled buffers.
The default size of created char buffers.
Creates a new .
The for creating buffers.
The for creating buffers.
Allows fine grained configuration of MVC services.
Initializes a new instance.
The to add services to.
The of the application.
Allows fine grained configuration of essential MVC services.
Initializes a new instance.
The to add services to.
The of the application.
Sets up default options for .
Sets up MVC default options for .
Configures the .
The .
A marker class used to determine if all the MVC services were added
to the before MVC is configured.
Stream that delegates to an inner stream.
This Stream is present so that the inner stream is not closed
even when Close() or Dispose() is called.
Initializes a new .
The stream which should not be closed or flushed.
The inner stream this object delegates to.
Cast Task of T to Task of object
Executes an to write to the response.
Creates a new .
An accessor to .
The .
The .
Gets the .
Gets the list of instances from .
Gets the value of .
Gets the value of .
Gets the writer factory delegate.
Executes the .
The for the current request.
The .
A which will complete once the is written to the response.
Selects the to write the response.
The .
The list of content types provided by .
The list of instances to consider.
The selected or null if no formatter can write the response.
Selects the to write the response. The first formatter which
can write the response should be chosen without any consideration for content type.
The .
The list of instances to consider.
The selected or null if no formatter can write the response.
Selects the to write the response based on the content type values
present in .
The .
The list of instances to consider.
The ordered content types from the Accept header, sorted by descending q-value.
The selected or null if no formatter can write the response.
Selects the to write the response based on the content type values
present in .
The .
The list of instances to consider.
The ordered content types from in descending priority order.
The selected or null if no formatter can write the response.
Selects the to write the response based on the content type values
present in and .
The .
The list of instances to consider.
The ordered content types from the Accept header, sorted by descending q-value.
The ordered content types from in descending priority order.
The selected or null if no formatter can write the response.
This is a container for prefix values. It normalizes all the values into dotted-form and then stores
them in a sorted array. All queries for prefixes are also normalized to dotted-form, and searches
for ContainsPrefix are done with a binary search.
An which sets the appropriate headers related to response caching.
Creates a new instance of
The profile which contains the settings for
.
Gets or sets the duration in seconds for which the response is cached.
This is a required parameter.
This sets "max-age" in "Cache-control" header.
Gets or sets the location where the data from a particular URL must be cached.
Gets or sets the value which determines whether the data should be stored or not.
When set to , it sets "Cache-control" header to "no-store".
Ignores the "Location" parameter for values other than "None".
Ignores the "duration" parameter.
Gets or sets the value for the Vary response header.
Gets the content type and encoding that need to be used for the response.
The priority for selecting the content type is:
1. ContentType property set on the action result
2. property set on
3. Default content type set on the action result
The user supplied content type is not modified and is used as is. For example, if user
sets the content type to be "text/plain" without any encoding, then the default content type's
encoding is used to write the response and the ContentType header is set to be "text/plain" without any
"charset" information.
ContentType set on the action result
property set
on
The default content type of the action result.
The content type to be used for the response content type header
Encoding to be used for writing the response
An implementation of for a dictionary bound with 'short form' style keys.
The of the keys of the model dictionary.
The of the values of the model dictionary.
This implemenation handles cases like:
Model: IDictionary<string, Student>
Query String: ?students[Joey].Age=8&students[Katherine].Age=9
In this case, 'Joey' and 'Katherine' are the keys of the dictionary, used to bind two 'Student'
objects. The enumerator returned from this class will yield two 'Student' objects with corresponding
keys 'students[Joey]' and 'students[Katherine]'
Using this key format, the enumerator enumerates model objects of type . The
keys of the dictionary are not validated as they must be simple types.
Creates a new .
The mapping from model prefix key to dictionary key.
The associated with .
Gets the mapping from model prefix key to dictionary key.
A that's already completed successfully.
We're caching this in a static readonly field to make it more inlinable and avoid the volatile lookup done
by Task.CompletedTask.
Gets a completed with the value of default(T).
Caches instances produced by
.
A data structure that retrieves a list of matches based on the values
supplied for the current request by .
Gets the version. The same as the value of
.
Retrieves a set of based on the route values supplied by
/
The route values for the current request.
A set of matching the route values.
A context that contains operating information for model binding and validation.
Initializes a new instance of the class.
Gets or sets the original value provider to be used when value providers are not filtered.
Creates a new for top-level model binding operation.
The associated with the binding operation.
The to use for binding.
associated with the model.
associated with the model.
The name of the property or parameter being bound.
A new instance of .
Enumerates behavior options of the model binding system.
The property should be model bound if a value is available from the value provider.
The property should be excluded from model binding.
The property is required for model binding.
Specifies the that should be applied.
Initializes a new instance.
The to apply.
Gets the to apply.
A value provider which provides data from a specific .
A is an base-implementation which
can provide data for all parameters and model properties which specify the corresponding
.
implements and will
include or exclude itself from the set of value providers based on the model's associated
. Value providers are by-default included; if a model does not
specify a then all value providers are valid.
Creates a new .
The . Must be a single-source (non-composite) with
equal to false.
Gets the corresponding .
Indicates that a property should be excluded from model binding. When applied to a property, the model binding
system excludes that property. When applied to a type, the model binding system excludes all properties of that
type.
Initializes a new instance.
Indicates that a property is required for model binding. When applied to a property, the model binding system
requires a value for that property. When applied to a type, the model binding system requires values for all
properties of that type.
Initializes a new instance.
Represents a whose values come from a collection of s.
Initializes a new instance of .
Initializes a new instance of .
The sequence of to add to this instance of
.
Asynchronously creates a using the provided
.
The associated with the current request.
A which, when completed, asynchronously returns a
.
Default implementation for .
Provides a expression based way to provide include properties.
The target model Type.
The prefix which is used while generating the property filter.
Expressions which can be used to generate property filter which can filter model
properties.
An adapter for data stored in an .
Creates a value provider for .
The for the data.
The key value pairs to wrap.
The culture to return with ValueProviderResult instances.
A for .
A value provider which can filter its contents based on .
Value providers are by-default included. If a model does not specify a
then all value providers are valid.
Filters the value provider based on .
The associated with a model.
The filtered value provider, or null if the value provider does not match
.
Interface for model binding collections.
Gets an indication whether or not this implementation can create
an assignable to .
of the model.
true if this implementation can create an
assignable to ; false otherwise.
A true return value is necessary for successful model binding if model is initially null.
A factory abstraction for creating instances.
Creates a new .
The .
An instance.
An for jQuery formatted form data.
Initializes a new instance of the class.
The of the data.
The values.
The culture to return with ValueProviderResult instances.
A for .
A factory for instances.
Creates a new .
The .
The for .
A context object for .
Gets or sets the .
Gets or sets the .
Gets or sets the cache token. If non-null the resulting
will be cached.
Extensions methods for .
Gets a for property identified by the provided
and .
The .
The for which the property is defined.
The property name.
A for the property.
An adapter for data stored in an .
Creates a value provider for .
The for the data.
The key value pairs to wrap.
The culture to return with ValueProviderResult instances.
A that creates instances that
read values from the request query-string.
An adapter for data stored in an .
Creates a new .
The of the data.
The values.
A for creating instances.
An which configures to
false for matching types.
Creates a new for the given .
The . This and all assignable values will have
set to false.
Creates a new for the given .
The type full name. This type and all of its subclasses will have
set to false.
Gets the for which to suppress validation of children.
Gets the full name of a type for which to suppress validation of children.
The that is added to model state when a model binder for the body of the request is
unable to understand the request content type header.
Creates a new instance of with the specified
exception .
The message that describes the error.
A filter that scans for in the
and short-circuits the pipeline
with an Unsupported Media Type (415) response.
Extensions methods for .
Attempts to convert the values in to the specified type.
The for conversion.
The .
The converted value, or the default value of if the value could not be converted.
Attempts to convert the values in to the specified type.
The .
The for conversion.
The converted value, or the default value of if the value could not be converted.
implementation for binding array values.
Type of elements in the array.
Creates a new .
The for binding .
An for arrays.
An for models which specify an using
.
Creates a new .
The of the .
An for models which specify an
using .
An which binds models from the request body using an
when a model has the binding source .
Creates a new .
The list of .
The , used to create
instances for reading the request body.
An for deserializing the request body using a formatter.
Creates a new .
The list of .
The .
ModelBinder to bind byte Arrays.
An for binding base64 encoded byte arrays.
implementation to bind models of type .
An for .
implementation for binding collection values.
Type of elements in the collection.
Creates a new .
The for binding elements.
Gets the instances for binding collection elements.
Create an assignable to .
of the model.
An assignable to .
Called when creating a default 'empty' model for a top level bind.
Create an instance of .
of the model.
An instance of .
Gets an assignable to that contains members from
.
of the model.
Collection of values retrieved from value providers. Or null if nothing was bound.
An assignable to . Or null if nothing was bound.
Extensibility point that allows the bound collection to be manipulated or transformed before being
returned from the binder.
Adds values from to given .
into which values are copied.
Collection of values retrieved from value providers. Or null if nothing was bound.
An for .
implementation for binding complex types.
Creates a new .
The of binders to use for binding properties.
Gets a value indicating whether or not the model property identified by
can be bound.
The for the container model.
The for the model property.
true if the model property can be bound, otherwise false.
Attempts to bind a property of the model.
The for the model property.
A that when completed will set to the
result of model binding.
Creates suitable for given .
The .
An compatible with .
Updates a property in the current .
The .
The model name.
The for the property to set.
The for the property's new value.
An for complex types.
implementation for binding dictionary values.
Type of keys in the dictionary.
Type of values in the dictionary.
Creates a new .
The for .
The for .
An for binding .
implementation to bind form values to .
An for .
implementation to bind posted files to .
An for , collections
of , and .
An which binds models from the request headers when a model
has the binding source /
An for binding header values.
An for .
The key type.
The value type.
Creates a new .
The for .
The for .
An for .
An which binds models from the request services when a model
has the binding source /
An for binding from the .
An for simple types.
An for binding simple data types.
Updates the specified instance using the specified
and the specified and executes
validation using the specified .
The type of the model object.
The model instance to update and validate.
The prefix to use when looking up values in the .
The for the current executing request.
The provider used for reading metadata for the model type.
The used for binding.
The used for looking up values.
The used for validating the
bound values.
A that on completion returns true if the update is successful
Updates the specified instance using the specified
and the specified and executes validation using the specified
.
The type of the model object.
The model instance to update and validate.
The prefix to use when looking up values in the .
The for the current executing request.
The provider used for reading metadata for the model type.
The used for binding.
The used for looking up values.
The used for validating the
bound values.
Expression(s) which represent top level properties
which need to be included for the current model.
A that on completion returns true if the update is successful
Updates the specified instance using the specified
and the specified and executes validation using the specified
.
The type of the model object.
The model instance to update and validate.
The prefix to use when looking up values in the .
The for the current executing request.
The provider used for reading metadata for the model type.
The used for binding.
The used for looking up values.
The used for validating the
bound values.
A predicate which can be used to filter properties(for inclusion/exclusion) at runtime.
A that on completion returns true if the update is successful
Updates the specified instance using the specified
and the specified and executes validation using the specified
.
The model instance to update and validate.
The type of model instance to update and validate.
The prefix to use when looking up values in the .
The for the current executing request.
The provider used for reading metadata for the model type.
The used for binding.
The used for looking up values.
The used for validating the
bound values.
A that on completion returns true if the update is successful
Updates the specified instance using the specified
and the specified and executes validation using the specified
.
The model instance to update and validate.
The type of model instance to update and validate.
The prefix to use when looking up values in the .
The for the current executing request.
The provider used for reading metadata for the model type.
The used for binding.
The used for looking up values.
The used for validating the
bound values.
A predicate which can be used to
filter properties(for inclusion/exclusion) at runtime.
A that on completion returns true if the update is successful
Creates an expression for a predicate to limit the set of properties used in model binding.
The model type.
Expressions identifying the properties to allow for binding.
An expression which can be used with .
Clears entries for .
The of the model.
The associated with the model.
The .
The entry to clear.
Clears entries for .
The .
The associated with the model.
The entry to clear.
Gets an indication whether is likely to return a usable
non-null value.
The element type of the required.
The .
true if is likely to return a usable non-null
value; false otherwise.
"Usable" in this context means the property can be set or its value reused.
Creates an instance compatible with 's
.
The element type of the required.
The .
An instance compatible with 's
.
Should not be called if returned false.
Creates an instance compatible with 's
.
The element type of the required.
The .
Capacity for use when creating a instance. Not used when creating another type.
An instance compatible with 's
.
Should not be called if returned false.
Converts the provided to a value of
using the .
The for conversion.
The value to convert."/>
The converted value or the default value of if the value could not be converted.
Converts the provided to a value of .
The for conversion.
The value to convert."/>
The for conversion.
The converted value or the default value of if the value could not be converted.
Converts the provided to a value of
using the .
The value to convert.
The for conversion.
The converted value or null if the value could not be converted.
Converts the provided to a value of .
The value to convert."/>
The for conversion.
The for conversion.
The converted value or null if the value could not be converted.
Binding metadata details for a .
Gets or sets the .
See .
Gets or sets the binder model name. If null the property or parameter name will be used.
See .
Gets or sets the of the model binder used to bind the model.
See .
Gets or sets a value indicating whether or not the property can be model bound.
Will be ignored if the model metadata being created does not represent a property.
See .
Gets or sets a value indicating whether or not the request must contain a value for the model.
Will be ignored if the model metadata being created does not represent a property.
See .
Gets or sets a value indicating whether or not the model is read-only. Will be ignored
if the model metadata being created is not a property. If null then
will be computed based on the accessibility
of the property accessor and model . See .
Gets the instance. See
.
Gets or sets the .
See .
A context for an .
Creates a new .
The for the .
The attributes for the .
Gets the attributes.
Gets the .
Gets the property attributes.
Gets the type attributes.
Gets the .
Holds associated metadata objects for a .
Any modifications to the data must be thread-safe for multiple readers and writers.
Creates a new .
The .
The set of model attributes.
Gets or sets the set of model attributes.
Gets or sets the .
Gets or sets the .
Gets or sets the .
Gets or sets the entries for the model properties.
Gets or sets a property getter delegate to get the property value from a model object.
Gets or sets a property setter delegate to set the property value on a model object.
Gets or sets the
A default implementation.
Creates a new .
The .
The .
The .
Gets the set of attributes for the current instance.
Gets the for the current instance.
Accessing this property will populate the if necessary.
Gets the for the current instance.
Accessing this property will populate the if necessary.
Gets the for the current instance.
Accessing this property will populate the if necessary.
A default implementation of based on reflection.
Creates a new .
The .
Gets the .
Creates a new from a .
The entry with cached data.
A new instance.
will always create instances of
.Override this method to create a
of a different concrete type.
Creates the entries for the properties of a model
.
The identifying the model .
A details object for each property of the model .
The results of this method will be cached and used to satisfy calls to
. Override this method to provide a different
set of property data.
Creates the entry for a model .
The identifying the model .
A details object for the model .
The results of this method will be cached and used to satisfy calls to
. Override this method to provide a different
set of attributes.
Display metadata details for a .
Gets a set of additional values. See
Gets or sets a value indicating whether or not empty strings should be treated as null.
See
Gets or sets the name of the data type.
See
Gets or sets a delegate which is used to get a value for the
model description. See .
Gets or sets a display format string for the model.
See
Gets or sets a delegate delegate which is used to get a value for the
display name of the model. See .
Gets or sets an edit format string for the model.
See
instances that set this property to a non-null, non-empty,
non-default value should also set to true.
Gets the ordered and grouped display names and values of all values in
. See
.
Gets the names and values of all values in
. See .
Gets or sets a value indicating whether or not the model has a non-default edit format.
See
Gets or sets a value indicating if the surrounding HTML should be hidden.
See
Gets or sets a value indicating if the model value should be HTML encoded.
See
Gets a value indicating whether is for an
. See .
Gets a value indicating whether is for an
with an associated . See
.
Gets or sets the text to display when the model value is null.
See
Gets or sets the order.
See
Gets or sets a delegate which is used to get a value for the
model's placeholder text. See .
Gets or sets a value indicating whether or not to include in the model value in display.
See
Gets or sets a value indicating whether or not to include in the model value in an editor.
See
Gets or sets a the property name of a model property to use for display.
See
Gets or sets a hint for location of a display or editor template.
See
A context for and .
Creates a new .
The for the .
The attributes for the .
Gets the attributes.
Gets the .
Gets the .
Gets the property attributes.
Gets the type attributes.
An which configures to
false for matching types.
Creates a new for the given .
The . All properties of this will have
set to false.
Provides for a .
Sets the values for properties of .
The .
A composite .
Provides for a .
Sets the values for properties of .
The .
Marker interface for a provider of metadata details about model objects. Implementations should
implement one or more of , ,
and .
Provides for a .
Gets the values for properties of .
The .
Read / write implementation.
Initializes a new instance of the class.
Initializes a new instance of the class based on
.
The to duplicate.
Validation metadata details for a .
Gets or sets a value indicating whether or not the model is a required value. Will be ignored
if the model metadata being created is not a property. If null then
will be computed based on the model .
See .
Gets or sets a value that indicates whether children of the model should be validated. If null
then will be true if either of
or is true;
false otherwise.
Gets a list of metadata items for validators.
implementations should store metadata items
in this list, to be consumed later by an .
A context for an .
Creates a new .
The for the .
The attributes for the .
Gets the attributes.
Gets the .
Gets the property attributes.
Gets the type attributes.
Gets the .
Provides access to the combined list of attributes associated a or property.
Creates a new for a .
The set of attributes for the .
Creates a new for a property.
The set of attributes for the property.
The set of attributes for the property's . See .
Gets the set of all attributes. If this instance represents the attributes for a property, the attributes
on the property definition are before those on the property's .
Gets the set of attributes on the property, or null if this instance represents the attributes
for a .
Gets the set of attributes on the . If this instance represents a property,
then contains attributes retrieved from
.
Gets the attributes for the given .
The in which caller found .
A for which attributes need to be resolved.
A instance with the attributes of the property.
Gets the attributes for the given .
The for which attributes need to be resolved.
A instance with the attributes of the .
Aggregate of s that delegates to its underlying providers.
Initializes a new instance of .
A collection of instances.
Gets a list of instances.
Aggregate of s that delegates to its underlying providers.
Initializes a new instance of .
A collection of instances.
Gets the list of instances.
Provides methods to validate an object graph.
Validates the provided object.
The associated with the current request.
The . May be null.
The model prefix. Used to map the model object to entries in .
The model object.
A visitor implementation that interprets to traverse
a model object graph and perform validation.
Creates a new .
The associated with the current request.
The .
The that provides a list of s.
The provider used for reading metadata for the model type.
The .
Validates a object.
The associated with the model.
The model prefix key.
The model object.
true if the object is valid, otherwise false.
Validates a single node in a model object graph.
true if the node is valid, otherwise false.
The argument '{0}' is invalid. Media types which match all types or match all subtypes are not supported.
The argument '{0}' is invalid. Media types which match all types or match all subtypes are not supported.
The content-type '{0}' added in the '{1}' property is invalid. Media types which match all types or match all subtypes are not supported.
The content-type '{0}' added in the '{1}' property is invalid. Media types which match all types or match all subtypes are not supported.
The method '{0}' on type '{1}' returned an instance of '{2}'. Make sure to call Unwrap on the returned value to avoid unobserved faulted Task.
The method '{0}' on type '{1}' returned an instance of '{2}'. Make sure to call Unwrap on the returned value to avoid unobserved faulted Task.
The method '{0}' on type '{1}' returned a Task instance even though it is not an asynchronous method.
The method '{0}' on type '{1}' returned a Task instance even though it is not an asynchronous method.
An action invoker could not be created for action '{0}'.
An action invoker could not be created for action '{0}'.
The action descriptor must be of type '{0}'.
The action descriptor must be of type '{0}'.
Value cannot be null or empty.
Value cannot be null or empty.
The '{0}' property of '{1}' must not be null.
The '{0}' property of '{1}' must not be null.
The '{0}' method of type '{1}' cannot return a null value.
The '{0}' method of type '{1}' cannot return a null value.
The value '{0}' is invalid.
The value '{0}' is invalid.
The passed expression of expression node type '{0}' is invalid. Only simple member access expressions for model properties are supported.
The passed expression of expression node type '{0}' is invalid. Only simple member access expressions for model properties are supported.
No route matches the supplied values.
No route matches the supplied values.
If an {0} provides a result value by setting the {1} property of {2} to a non-null value, then it cannot call the next filter by invoking {3}.
If an {0} provides a result value by setting the {1} property of {2} to a non-null value, then it cannot call the next filter by invoking {3}.
If an {0} cancels execution by setting the {1} property of {2} to 'true', then it cannot call the next filter by invoking {3}.
If an {0} cancels execution by setting the {1} property of {2} to 'true', then it cannot call the next filter by invoking {3}.
The type provided to '{0}' must implement '{1}'.
The type provided to '{0}' must implement '{1}'.
Cannot return null from an action method with a return type of '{0}'.
Cannot return null from an action method with a return type of '{0}'.
The type '{0}' must derive from '{1}'.
The type '{0}' must derive from '{1}'.
No encoding found for input formatter '{0}'. There must be at least one supported encoding registered in order for the formatter to read content.
No encoding found for input formatter '{0}'. There must be at least one supported encoding registered in order for the formatter to read content.
Unsupported content type '{0}'.
Unsupported content type '{0}'.
No supported media type registered for output formatter '{0}'. There must be at least one supported media type registered in order for the output formatter to write content.
No supported media type registered for output formatter '{0}'. There must be at least one supported media type registered in order for the output formatter to write content.
The following errors occurred with attribute routing information:{0}{0}{1}
The following errors occurred with attribute routing information:{0}{0}{1}
The attribute route '{0}' cannot contain a parameter named '{{{1}}}'. Use '[{1}]' in the route template to insert the value '{2}'.
The attribute route '{0}' cannot contain a parameter named '{{{1}}}'. Use '[{1}]' in the route template to insert the value '{2}'.
For action: '{0}'{1}Error: {2}
For action: '{0}'{1}Error: {2}
An empty replacement token ('[]') is not allowed.
An empty replacement token ('[]') is not allowed.
Token delimiters ('[', ']') are imbalanced.
Token delimiters ('[', ']') are imbalanced.
The route template '{0}' has invalid syntax. {1}
The route template '{0}' has invalid syntax. {1}
While processing template '{0}', a replacement value for the token '{1}' could not be found. Available tokens: '{2}'.
While processing template '{0}', a replacement value for the token '{1}' could not be found. Available tokens: '{2}'.
A replacement token is not closed.
A replacement token is not closed.
An unescaped '[' token is not allowed inside of a replacement token. Use '[[' to escape.
An unescaped '[' token is not allowed inside of a replacement token. Use '[[' to escape.
Unable to find the required services. Please add all the required services by calling '{0}.{1}' inside the call to '{2}' in the application startup code.
Unable to find the required services. Please add all the required services by calling '{0}.{1}' inside the call to '{2}' in the application startup code.
Action: '{0}' - Template: '{1}'
Action: '{0}' - Template: '{1}'
Attribute routes with the same name '{0}' must have the same template:{1}{2}
Attribute routes with the same name '{0}' must have the same template:{1}{2}
Error {0}:{1}{2}
Error {0}:{1}{2}
A method '{0}' must not define attribute routed actions and non attribute routed actions at the same time:{1}{2}{1}{1}Use 'AcceptVerbsAttribute' to create a single route that allows multiple HTTP verbs and defines a route, or set a route template in all attributes that constrain HTTP verbs.
A method '{0}' must not define attribute routed actions and non attribute routed actions at the same time:{1}{2}{1}{1}Use 'AcceptVerbsAttribute' to create a single route that allows multiple HTTP verbs and defines a route, or set a route template in all attributes that constrain HTTP verbs.
Action: '{0}' - Route Template: '{1}' - HTTP Verbs: '{2}'
Action: '{0}' - Route Template: '{1}' - HTTP Verbs: '{2}'
(none)
(none)
Multiple actions matched. The following actions matched route data and had all constraints satisfied:{0}{0}{1}
Multiple actions matched. The following actions matched route data and had all constraints satisfied:{0}{0}{1}
Could not find file: {0}
Could not find file: {0}
The input was not valid.
The input was not valid.
If an {0} provides a result value by setting the {1} property of {2} to a non-null value, then it cannot call the next filter by invoking {3}.
If an {0} provides a result value by setting the {1} property of {2} to a non-null value, then it cannot call the next filter by invoking {3}.
If the '{0}' property is not set to true, '{1}' property must be specified.
If the '{0}' property is not set to true, '{1}' property must be specified.
The action '{0}' has ApiExplorer enabled, but is using conventional routing. Only actions which use attribute routing support ApiExplorer.
The action '{0}' has ApiExplorer enabled, but is using conventional routing. Only actions which use attribute routing support ApiExplorer.
The media type "{0}" is not valid. MediaTypes containing wildcards (*) are not allowed in formatter mappings.
The media type "{0}" is not valid. MediaTypes containing wildcards (*) are not allowed in formatter mappings.
The format provided is invalid '{0}'. A format must be a non-empty file-extension, optionally prefixed with a '.' character.
The format provided is invalid '{0}'. A format must be a non-empty file-extension, optionally prefixed with a '.' character.
The '{0}' cache profile is not defined.
The '{0}' cache profile is not defined.
The model's runtime type '{0}' is not assignable to the type '{1}'.
The model's runtime type '{0}' is not assignable to the type '{1}'.
The type '{0}' cannot be activated by '{1}' because it is either a value type, an interface, an abstract class or an open generic type.
The type '{0}' cannot be activated by '{1}' because it is either a value type, an interface, an abstract class or an open generic type.
The type '{0}' must implement '{1}' to be used as a model binder.
The type '{0}' must implement '{1}' to be used as a model binder.
The provided binding source '{0}' is a composite. '{1}' requires that the source must represent a single type of input.
The provided binding source '{0}' is a composite. '{1}' requires that the source must represent a single type of input.
The provided binding source '{0}' is a greedy data source. '{1}' does not support greedy data sources.
The provided binding source '{0}' is a greedy data source. '{1}' does not support greedy data sources.
The property {0}.{1} could not be found.
The property {0}.{1} could not be found.
The key '{0}' is invalid JQuery syntax because it is missing a closing bracket.
The key '{0}' is invalid JQuery syntax because it is missing a closing bracket.
A value is required.
A value is required.
The binding context has a null Model, but this binder requires a non-null model of type '{0}'.
The binding context has a null Model, but this binder requires a non-null model of type '{0}'.
The binding context has a Model of type '{0}', but this binder can only operate on models of type '{1}'.
The binding context has a Model of type '{0}', but this binder can only operate on models of type '{1}'.
The binding context cannot have a null ModelMetadata.
The binding context cannot have a null ModelMetadata.
A value for the '{0}' property was not provided.
A value for the '{0}' property was not provided.
The parameter conversion from type '{0}' to type '{1}' failed because no type converter can convert between these types.
The parameter conversion from type '{0}' to type '{1}' failed because no type converter can convert between these types.
Path '{0}' was not rooted.
Path '{0}' was not rooted.
The supplied URL is not local. A URL with an absolute path is considered local if it does not have a host/authority part. URLs using virtual paths ('~/') are also local.
The supplied URL is not local. A URL with an absolute path is considered local if it does not have a host/authority part. URLs using virtual paths ('~/') are also local.
The argument '{0}' is invalid. Empty or null formats are not supported.
The argument '{0}' is invalid. Empty or null formats are not supported.
"Invalid values '{0}'."
"Invalid values '{0}'."
The value '{0}' is not valid for {1}.
The value '{0}' is not valid for {1}.
The supplied value is invalid for {0}.
The supplied value is invalid for {0}.
The value '{0}' is invalid.
The value '{0}' is invalid.
The field {0} must be a number.
The field {0} must be a number.
The list of '{0}' must not be empty. Add at least one supported encoding.
The list of '{0}' must not be empty. Add at least one supported encoding.
The list of '{0}' must not be empty. Add at least one supported encoding.
The list of '{0}' must not be empty. Add at least one supported encoding.
'{0}' is not supported by '{1}'. Use '{2}' instead.
'{0}' is not supported by '{1}'. Use '{2}' instead.
No media types found in '{0}.{1}'. Add at least one media type to the list of supported media types.
No media types found in '{0}.{1}'. Add at least one media type to the list of supported media types.
At least one authentication scheme must be specified.
At least one authentication scheme must be specified.
Could not create a model binder for model object of type '{0}'.
Could not create a model binder for model object of type '{0}'.
Identifies an action that only supports a given set of HTTP methods.
Creates a new with the given
set of HTTP methods.
The set of supported HTTP methods.
Creates a new with the given
set of HTTP methods an the given route template.
The set of supported methods.
The route template. May not be null.
Gets the route order. The order determines the order of route execution. Routes with a lower
order value are tried first. When a route doesn't specify a value, it gets the value of the
or a default value of 0 if the
doesn't define a value on the controller.
Interface for attributes which can supply a route template for attribute routing.
The route template. May be null.
Gets the route order. The order determines the order of route execution. Routes with a lower
order value are tried first. When a route doesn't specify a value, it gets a default value of 0.
A null value for the Order property means that the user didn't specify an explicit order for the
route.
Gets the route name. The route name can be used to generate a link using a specific route, instead
of relying on selection of a route based on the given set of route values.
A metadata interface which specifies a route value which is required for the action selector to
choose an action. When applied to an action using attribute routing, the route value will be added
to the when the action is selected.
When an is used to provide a new route value to an action, all
actions in the application must also have a value associated with that key, or have an implicit value
of null. See remarks for more details.
The typical scheme for action selection in an MVC application is that an action will require the
matching values for its and
For an action like MyApp.Controllers.HomeController.Index()
, in order to be selected, the
must contain the values
{
"action": "Index",
"controller": "Home"
}
If areas are in use in the application (see which implements
) then all actions are consider either in an area by having a
non-null area value (specified by or another
) or are considered 'outside' of areas by having the value null.
Consider an application with two controllers, each with an Index
action method:
- MyApp.Controllers.HomeController.Index()
- MyApp.Areas.Blog.Controllers.HomeController.Index()
where MyApp.Areas.Blog.Controllers.HomeController
has an area attribute
[Area("Blog")]
.
For like:
{
"action": "Index",
"controller": "Home"
}
MyApp.Controllers.HomeController.Index()
will be selected.
MyApp.Area.Blog.Controllers.HomeController.Index()
is not considered eligible because the
does not contain the value 'Blog' for 'area'.
For like:
{
"area": "Blog",
"action": "Index",
"controller": "Home"
}
MyApp.Area.Blog.Controllers.HomeController.Index()
will be selected.
MyApp.Controllers.HomeController.Index()
is not considered eligible because the route values
contain a value for 'area'. MyApp.Controllers.HomeController.Index()
cannot match any value
for 'area' other than null.
The route value key.
The route value. If null or empty, requires the route value associated with
to be missing or null.
A factory for creating instances.
Gets an for the request associated with .
The associated with the current request.
An for the request associated with
An attribute which specifies a required route value for an action or controller.
When placed on an action, the route data of a request must match the expectations of the route
constraint in order for the action to be selected. See for
the expectations that must be satisfied by the route data.
When placed on a controller, unless overridden by the action, the constraint applies to all
actions defined by the controller.
Creates a new .
The route value key.
The expected route value.
An implementation of that contains methods to
build URLs for ASP.NET MVC within an application.
Initializes a new instance of the class using the specified action context and
action selector.
The for the current request.
Gets the for the specified route values by using the specified route name.
The name of the route that is used to generate the .
A dictionary that contains the parameters for a route.
The .
Generates the URL using the specified components.
The protocol.
The host.
The .
The URL fragment.
The generated URL.
A default implementation of .
A marker interface for types which need to have temp data saved.
Extension methods for to add MVC to the request execution pipeline.
Adds MVC to the request execution pipeline.
The .
A reference to this instance after the operation has completed.
This method only supports attribute routing. To add conventional routes use
.
Adds MVC to the request execution pipeline
with a default route named 'default' and the following template:
'{controller=Home}/{action=Index}/{id?}'.
The .
A reference to this instance after the operation has completed.
Adds MVC to the request execution pipeline.
The .
A callback to configure MVC routes.
A reference to this instance after the operation has completed.
Extension methods for .
Adds a route to the with the given MVC area with the specified
, and .
The to add the route to.
The name of the route.
The MVC area name.
The URL pattern of the route.
A reference to this instance after the operation has completed.
Adds a route to the with the given MVC area with the specified
, , , and
.
The to add the route to.
The name of the route.
The MVC area name.
The URL pattern of the route.
An object that contains default values for route parameters. The object's properties represent the
names and values of the default values.
A reference to this instance after the operation has completed.
Adds a route to the with the given MVC area with the specified
, , ,
, and .
The to add the route to.
The name of the route.
The MVC area name.
The URL pattern of the route.
An object that contains default values for route parameters. The object's properties represent the
names and values of the default values.
An object that contains constraints for the route. The object's properties represent the names and
values of the constraints.
A reference to this instance after the operation has completed.
Adds a route to the with the given MVC area with the specified
, , ,
, , and .
The to add the route to.
The name of the route.
The MVC area name.
The URL pattern of the route.
An object that contains default values for route parameters. The object's properties represent the
names and values of the default values.
An object that contains constraints for the route. The object's properties represent the names and
values of the constraints.
An object that contains data tokens for the route. The object's properties represent the names and
values of the data tokens.
A reference to this instance after the operation has completed.
Helper related to generic interface definitions and implementing classes.
Determine whether is or implements a closed generic
created from .
The of interest.
The open generic to match. Usually an interface.
The closed generic created from that
is or implements. null if the two s have no such
relationship.
This method will return if is
typeof(KeyValuePair{,}), and is
typeof(KeyValuePair{string, object}).
Initializes a fast .
This constructor does not cache the helper. For caching, use .
Gets the backing .
Gets (or sets in derived types) the property name.
Gets the property value getter.
Gets the property value setter.
Returns the property value for the specified .
The object whose property value will be returned.
The property value.
Sets the property value for the specified .
The object whose property value will be set.
The property value.
Creates and caches fast property helpers that expose getters for every public get property on the
underlying type.
the instance to extract property accessors for.
a cached array of all public property getters from the underlying type of target instance.
Creates and caches fast property helpers that expose getters for every public get property on the
specified type.
the type to extract property accessors for.
a cached array of all public property getters from the type of target instance.
Creates and caches fast property helpers that expose getters for every non-hidden get property
on the specified type.
excludes properties defined on base types that have been
hidden by definitions using the new keyword.
The instance to extract property accessors for.
A cached array of all public property getters from the instance's type.
Creates and caches fast property helpers that expose getters for every non-hidden get property
on the specified type.
excludes properties defined on base types that have been
hidden by definitions using the new keyword.
The type to extract property accessors for.
A cached array of all public property getters from the type.
Creates a single fast property getter. The result is not cached.
propertyInfo to extract the getter for.
a fast getter.
This method is more memory efficient than a dynamically compiled lambda, and about the
same speed.
Creates a single fast property getter which is safe for a null input object. The result is not cached.
propertyInfo to extract the getter for.
a fast getter.
This method is more memory efficient than a dynamically compiled lambda, and about the
same speed.
Creates a single fast property setter for reference types. The result is not cached.
propertyInfo to extract the setter for.
a fast getter.
This method is more memory efficient than a dynamically compiled lambda, and about the
same speed. This only works for reference types.
Given an object, adds each instance property with a public get method as a key and its
associated value to a dictionary.
If the object is already an instance, then a copy
is returned.
The implementation of PropertyHelper will cache the property accessors per-type. This is
faster when the the same type is used multiple times with ObjectToDictionary.
Helper code used when implementing authentication middleware
Add all ClaimsIdentities from an additional ClaimPrincipal to the ClaimsPrincipal
Merges a new claims principal, placing all new identities first, and eliminating
any empty unauthenticated identities from context.User
The containing existing .
The containing to be added.
Contains the extension methods for .
Adds a to all the controllers in the application.
The list of
in .
The which needs to be
added.
Adds a to all the actions in the application.
The list of
in .
The which needs to be
added.
Initializes a new instance of .
The action convention to be applied on all actions
in the application.
Initializes a new instance of .
The controller convention to be applied on all controllers
in the application.
An interface for configuring MVC services.
Gets the where MVC services are configured.
Gets the where s
are configured.
An interface for configuring essential MVC services.
Gets the where essential MVC services are configured.
Gets the where s
are configured.
Extensions for configuring MVC using an .
Registers an action to configure .
The .
An .
The .
Adds an to the list of on the
.
The .
The of the .
The .
Configures the of the using
the given .
The .
The
The .
Registers discovered controllers as services in the .
The .
The .
Registers an action to configure .
The .
An .
The .
Registers discovered controllers as services in the .
The .
The .
Adds an to the list of on the
.
The .
The of the .
The .
Configures the of the using
the given .
The .
The
The .
Extension methods for setting up essential MVC services in an .
Adds essential MVC services to the specified .
The to add services to.
An that can be used to further configure the MVC services.
Adds essential MVC services to the specified .
The to add services to.
An to configure the provided .
An that can be used to further configure the MVC services.