Microsoft.AspNetCore.Mvc.ViewFeatures
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.
Extensions methods for configuring MVC via an .
Adds configuration of for the application.
The .
The which need to be configured.
The .
Registers discovered view components as services in the .
The .
The .
An attribute that causes validation of antiforgery tokens for all unsafe HTTP methods. An antiforgery
token is required for HTTP methods other than GET, HEAD, OPTIONS, and TRACE.
can be applied at as a global filter to trigger
validation of antiforgery tokens by default for an application. Use
to suppress validation of the antiforgery token for
a controller or action.
Gets the order value for determining the order of execution of filters. Filters execute in
ascending numeric value of the property.
Filters are executed in an ordering determined by an ascending sort of the property.
The default Order for this attribute is 1000 because it must run after any filter which does authentication
or login in order to allow them to behave as expected (ie Unauthenticated or Redirect instead of 400).
Look at for more detailed info.
A base class for an MVC controller with view support.
Gets or sets used by and .
By default, this property is activated when activates
controllers. However, when controllers are directly instantiated in user code, this property is
initialized with .
Gets or sets used by .
Gets the dynamic view bag.
Creates a object that renders a view to the response.
The created object for the response.
Creates a object by specifying a .
The name of the view that is rendered to the response.
The created object for the response.
Creates a object by specifying a
to be rendered by the view.
The model that is rendered by the view.
The created object for the response.
Creates a object by specifying a
and the to be rendered by the view.
The name of the view that is rendered to the response.
The model that is rendered by the view.
The created object for the response.
Creates a object that renders a partial view to the response.
The created object for the response.
Creates a object by specifying a .
The name of the view that is rendered to the response.
The created object for the response.
Creates a object by specifying a
to be rendered by the partial view.
The model that is rendered by the partial view.
The created object for the response.
Creates a object by specifying a
and the to be rendered by the partial view.
The name of the partial view that is rendered to the response.
The model that is rendered by the partial view.
The created object for the response.
Creates a by specifying the name of a view component to render.
The view component name. Can be a view component
or
.
The created object for the response.
Creates a by specifying the of a view component to
render.
The view component .
The created object for the response.
Creates a by specifying the name of a view component to render.
The view component name. Can be a view component
or
.
An with properties representing arguments to be passed to the invoked view component
method. Alternatively, an instance
containing the invocation arguments.
The created object for the response.
Creates a by specifying the of a view component to
render.
The view component .
An with properties representing arguments to be passed to the invoked view component
method. Alternatively, an instance
containing the invocation arguments.
The created object for the response.
Creates a object that serializes the specified object
to JSON.
The object to serialize.
The created that serializes the specified
to JSON format for the response.
Creates a object that serializes the specified object
to JSON.
The object to serialize.
The to be used by
the formatter.
The created that serializes the specified
as JSON format for the response.
Callers should cache an instance of to avoid
recreating cached data with each call.
Called before the action method is invoked.
The action executing context.
Called after the action method is invoked.
The action executed context.
Called before the action method is invoked.
The action executing context.
The to execute. Invoke this delegate in the body
of to continue execution of the action.
A instance.
Releases all resources currently used by this instance.
true if this method is being invoked by the method,
otherwise false.
An filter that skips antiforgery token validation.
Supports the rendering of view components in a view.
Invokes a view component with the specified .
The name of the view component.
An with properties representing arguments to be passed to the invoked view component
method. Alternatively, an instance
containing the invocation arguments.
A that on completion returns the rendered .
Invokes a view component of type .
The view component .
An with properties representing arguments to be passed to the invoked view component
method. Alternatively, an instance
containing the invocation arguments.
A that on completion returns the rendered .
Result type of a .
Executes the result of a using the specified .
The for the current component execution.
Asynchronously executes the result of a using the specified
.
The for the current component execution.
A that represents the asynchronous execution.
Contract for contextualizing a property activated by a view with the .
This interface is used for contextualizing properties added to a Razor page using @inject.
Contextualizes the instance with the specified .
The .
Gets for named in given
.
Expression name, relative to viewData.Model.
The that may contain the value.
The .
for named in given .
This class holds the cache for the expression text that is computed by ExpressionHelper.
Creates and manages the lifetime of instances.
Gets a .
The minimum size of the segment.
The .
Returns a that can be reused.
The .
Creates a that will delegate to the provided
.
The .
A .
A that uses pooled memory.
Initializes a new instance of .
The for creating instances.
The for creating instances.
Sets up default options for .
Initializes a new instance of .
Finds and executes an for a .
Creates a new .
The .
The .
The .
The .
The .
The .
The .
Gets the .
Attempts to find the associated with .
The associated with the current request.
The .
A .
Executes the asynchronously.
The associated with the current request.
The .
The .
A which will complete when view execution is completed.
A filter that saves temp data.
Creates a new instance of .
The .
Sets up default options for .
An that is backed by a buffer provided by .
Initializes a new instance of .
The .
A name to identify this instance.
The size of buffer pages.
Gets the backing buffer.
Writes the buffered content to .
The .
The .
A which will complete once content has been written.
A that is backed by a unbuffered writer (over the Response stream) and/or a
When Flush or FlushAsync is invoked, the writer copies all content from the buffer to
the writer and switches to writing to the unbuffered writer for all further write operations.
Creates a new instance of .
The for buffered output.
The .
Creates a new instance of .
The for buffered output.
The .
The HTML encoder.
The inner to write output to when this instance is no longer buffering.
Gets the .
Writes an value.
The value.
Writes an value.
The value.
Copies the buffered content to the unbuffered writer and invokes flush on it.
Additionally causes this instance to no longer buffer and direct all write operations
to the unbuffered writer.
Copies the buffered content to the unbuffered writer and invokes flush on it.
Additionally causes this instance to no longer buffer and direct all write operations
to the unbuffered writer.
A that represents the asynchronous copy and flush operations.
Encapsulates a string or value.
Initializes a new instance of with a string value.
The value.
Initializes a new instance of with a value.
The .
Gets the value.
Finds and executes an for a .
Creates a new .
The .
The .
The .
The .
The .
The .
The .
Gets the .
Attempts to find the associated with .
The associated with the current request.
The .
A .
Executes the asynchronously.
The associated with the current request.
The .
The .
A which will complete when view execution is completed.
The view component name '{0}' matched multiple types:{1}{2}
The view component name '{0}' matched multiple types:{1}{2}
Method '{0}' of view component '{1}' should be declared to return {2}<T>.
Method '{0}' of view component '{1}' should be declared to return {2}<T>.
A view component must return a non-null value.
A view component must return a non-null value.
Method '{0}' of view component '{1}' should be declared to return a value.
Method '{0}' of view component '{1}' should be declared to return a value.
A view component named '{0}' could not be found.
A view component named '{0}' could not be found.
An invoker could not be created for the view component '{0}'.
An invoker could not be created for the view component '{0}'.
Could not find an '{0}' or '{1}' method for the view component '{2}'.
Could not find an '{0}' or '{1}' method for the view component '{2}'.
View components only support returning {0}, {1} or {2}.
View components only support returning {0}, {1} or {2}.
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.
Property '{0}' is of type '{1}', but this method requires a value of type '{2}'.
Property '{0}' is of type '{1}', but this method requires a value of type '{2}'.
The partial view '{0}' was not found or no view engine supports the searched locations. The following locations were searched:{1}
The partial view '{0}' was not found or no view engine supports the searched locations. The following locations were searched:{1}
False
False
Not Set
Not Set
True
True
ViewData value must not be null.
ViewData value must not be null.
The expression compiler was unable to evaluate the indexer expression '{0}' because it references the model parameter '{1}' which is unavailable.
The expression compiler was unable to evaluate the indexer expression '{0}' because it references the model parameter '{1}' which is unavailable.
The IModelMetadataProvider was unable to provide metadata for expression '{0}'.
The IModelMetadataProvider was unable to provide metadata for expression '{0}'.
Must call 'Contextualize' method before using this HtmlHelper instance.
Must call 'Contextualize' method before using this HtmlHelper instance.
There is no ViewData item of type '{0}' that has the key '{1}'.
There is no ViewData item of type '{0}' that has the key '{1}'.
The parameter '{0}' must evaluate to an IEnumerable when multiple selection is allowed.
The parameter '{0}' must evaluate to an IEnumerable when multiple selection is allowed.
The type '{0}' is not supported. Type must be an {1} that does not have an associated {2}.
The type '{0}' is not supported. Type must be an {1} that does not have an associated {2}.
The ViewData item that has the key '{0}' is of type '{1}' but must be of type '{2}'.
The ViewData item that has the key '{0}' is of type '{1}' but must be of type '{2}'.
The '{0}' template was used with an object of type '{1}', which does not implement '{2}'.
The '{0}' template was used with an object of type '{1}', which does not implement '{2}'.
Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions.
Templates can be used only with field access, property access, single-dimension array index, or single-parameter custom indexer expressions.
Unable to locate an appropriate template for type {0}.
Unable to locate an appropriate template for type {0}.
The model item passed is null, but this ViewDataDictionary instance requires a non-null model item of type '{0}'.
The model item passed is null, but this ViewDataDictionary instance requires a non-null model item of type '{0}'.
The model item passed into the ViewDataDictionary is of type '{0}', but this ViewDataDictionary instance requires a model item of type '{1}'.
The model item passed into the ViewDataDictionary is of type '{0}', but this ViewDataDictionary instance requires a model item of type '{1}'.
The partial view '{0}' was not found. The following locations were searched:{1}
The partial view '{0}' was not found. The following locations were searched:{1}
The view '{0}' was not found. The following locations were searched:{1}
The view '{0}' was not found. The following locations were searched:{1}
The value must be greater than or equal to zero.
The value must be greater than or equal to zero.
Validation parameter names in unobtrusive client validation rules cannot be empty. Client rule type: {0}
Validation parameter names in unobtrusive client validation rules cannot be empty. Client rule type: {0}
Validation parameter names in unobtrusive client validation rules must start with a lowercase letter and consist of only lowercase letters or digits. Validation parameter name: {0}, client rule type: {1}
Validation parameter names in unobtrusive client validation rules must start with a lowercase letter and consist of only lowercase letters or digits. Validation parameter name: {0}, client rule type: {1}
Validation type names in unobtrusive client validation rules cannot be empty. Client rule type: {0}
Validation type names in unobtrusive client validation rules cannot be empty. Client rule type: {0}
Validation type names in unobtrusive client validation rules must consist of only lowercase letters. Invalid name: "{0}", client rule type: {1}
Validation type names in unobtrusive client validation rules must consist of only lowercase letters. Invalid name: "{0}", client rule type: {1}
Validation type names in unobtrusive client validation rules must be unique. The following validation type was seen more than once: {0}
Validation type names in unobtrusive client validation rules must be unique. The following validation type was seen more than once: {0}
The type '{0}' must derive from '{1}'.
The type '{0}' must derive from '{1}'.
Could not find a replacement for view expansion token '{0}'.
Could not find a replacement for view expansion token '{0}'.
{0} must be executed before {1} can be invoked.
{0} must be executed before {1} can be invoked.
The result of value factory cannot be null.
The result of value factory cannot be null.
Type: '{0}' - Name: '{1}'
Type: '{0}' - Name: '{1}'
The property {0}.{1} could not be found.
The property {0}.{1} could not be found.
No URL for remote validation could be found.
No URL for remote validation could be found.
'{0}' is invalid.
'{0}' is invalid.
The name of an HTML field cannot be null or empty. Instead use methods {0}.{1} or {2}.{3} with a non-empty {4} argument value.
The name of an HTML field cannot be null or empty. Instead use methods {0}.{1} or {2}.{3} with a non-empty {4} argument value.
Either the '{0}' or '{1}' property must be set in order to invoke a view component.
Either the '{0}' or '{1}' property must be set in order to invoke a view component.
Cannot deserialize {0} of type '{1}'.
Cannot deserialize {0} of type '{1}'.
The '{0}' cannot serialize a dictionary with a key of type '{1}' to session state.
The '{0}' cannot serialize a dictionary with a key of type '{1}' to session state.
The '{0}' cannot serialize an object of type '{1}' to session state.
The '{0}' cannot serialize an object of type '{1}' to session state.
The collection already contains an entry with key '{0}'.
The collection already contains an entry with key '{0}'.
Method '{0}' of view component '{1}' cannot return a {2}.
Method '{0}' of view component '{1}' cannot return a {2}.
View component '{0}' must have exactly one public method named '{1}' or '{2}'.
View component '{0}' must have exactly one public method named '{1}' or '{2}'.
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 {0} was unable to provide metadata for expression '{1}'.
The {0} was unable to provide metadata for expression '{1}'.
Generates an <input type="hidden"> element for an antiforgery token.
The instance.
The associated with the current request.
A containing an <input type="hidden"> element. This element should be put
inside a <form>.
This method has a side effect:
A response cookie is set if there is no valid cookie associated with the request.
A dictionary for HTML attributes.
An enumerator for .
Creates a new .
The .
Initializes a new instance of the class.
The instance which is used to generate antiforgery
tokens.
The accessor for .
The .
The .
The .
The that provides
a list of s.
Not used directly in HtmlHelper. Exposed for use in DefaultDisplayTemplates.
Generate a <form> element.
A instance for the current scope.
The URL where the form-data should be submitted.
The HTTP method for processing the form, either GET or POST.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
A instance for the </form> element.
Adds validation attributes to the if client validation
is enabled.
A instance for the current scope.
A instance.
The for the .
Expression name, relative to the current model.
Property bag for any information you wish to associate with a <form/> in an
implementation or extension method.
Default implementation of .
Initializes a new instance of the class.
Creates a dictionary from an object, by adding each public instance property as a key with its associated
value to the dictionary. It will expose public properties from derived types as well. This is typically
used with objects of an anonymous type.
If the is already an instance, then it
is returned as-is.
new { data_name="value" } will translate to the entry { "data_name", "value" }
in the resulting dictionary.
The to be converted.
The created dictionary of property names and property values.
Creates a dictionary of HTML attributes from the input object,
translating underscores to dashes in each public instance property.
If the object is already an instance, then it is
returned as-is.
new { data_name="value" } will translate to the entry { "data-name", "value" }
in the resulting dictionary.
Anonymous object describing HTML attributes.
A dictionary that represents HTML attributes.
Returns the HTTP method that handles form input (GET or POST) as a string.
The HTTP method that handles the form.
The form method string, either "get" or "post".
Override this method to return an subclass. That subclass may change
behavior.
A new instance.
Renders a <form> start tag to the response. When the user submits the form, the action with name
will process the request.
The name of the action method.
The name of the controller.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route parameters.
The HTTP method for processing the form, either GET or POST.
If true, <form> elements will include an antiforgery token.
If false, suppresses the generation an <input> of type "hidden" with an antiforgery token.
If null, <form> elements will include an antiforgery token only if
is not .
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. The route with name
generates the <form>'s action attribute value.
The name of the route.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route parameters.
The HTTP method for processing the form, either GET or POST.
If true, <form> elements will include an antiforgery token.
If false, suppresses the generation an <input> of type "hidden" with an antiforgery token.
If null, <form> elements will include an antiforgery token only if
is not .
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Returns a select list for the given .
to generate a select list for.
An containing the select list for the given
.
Thrown if 's is not an
or if it has a .
Initializes a new instance of the class.
Provides programmatic configuration for the HTML helpers and .
Gets or sets the value.
Set this property to to have templated helpers such as
and render date and time
values as RFC 3339 compliant strings. By default these helpers render dates and times using the current
culture.
Gets or sets the that replaces periods in the ID attribute of an element.
Gets or sets a value that indicates whether client-side validation is enabled.
Gets or sets the element name used to wrap a top-level message generated by
and other overloads.
Gets or sets the element name used to wrap a top-level message generated by
and other overloads.
A marker interface for filters which define a policy for antiforgery token validation.
Contract for a service supporting and ITagHelper implementations.
Generate a <a> element for a link to an action.
The instance for the current scope.
The text to insert inside the element.
The name of the action method.
The name of the controller.
The protocol (scheme) for the generated link.
The hostname for the generated link.
The fragment for the genrated link.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route parameters.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
A instance for the <a> element.
Generate an <input type="hidden".../> element containing an antiforgery token.
The instance for the current scope.
An instance for the <input type="hidden".../> element. Intended to be used
inside a <form> element.
Generate a <input type="checkbox".../> element.
The instance for the current scope.
The for the .
Expression name, relative to the current model.
The initial state of the checkbox element.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
A instance for the <input type="checkbox".../> element.
Generate an additional <input type="hidden".../> for checkboxes. This addresses scenarios where
unchecked checkboxes are not sent in the request. Sending a hidden input makes it possible to know that the
checkbox was present on the page when the request was submitted.
Generate a <form> element. When the user submits the form, the action with name
will process the request.
A instance for the current scope.
The name of the action method.
The name of the controller.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route parameters.
The HTTP method for processing the form, either GET or POST.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
A instance for the </form> element.
Generate a <form> element. The route with name generates the
<form>'s action attribute value.
A instance for the current scope.
The name of the route.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route parameters.
The HTTP method for processing the form, either GET or POST.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
A instance for the </form> element.
Generate a <a> element for a link to an action.
The instance for the current scope.
The text to insert inside the element.
The name of the route to use for link generation.
The protocol (scheme) for the generated link.
The hostname for the generated link.
The fragment for the genrated link.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route parameters.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
A instance for the <a> element.
Generate a <select> element for the .
A instance for the current scope.
for the . If null, determines validation
attributes using and the .
Optional text for a default empty <option> element.
Expression name, relative to the current model.
A collection of objects used to populate the <select> element with
<optgroup> and <option> elements. If null, finds this collection at
ViewContext.ViewData[expression].
If true, includes a multiple attribute in the generated HTML. Otherwise generates a
single-selection <select> element.
An that contains the HTML attributes for the <select> element. Alternatively, an
instance containing the HTML attributes.
A new describing the <select> element.
Combines and to set
<select> element's "name" attribute. Sanitizes to set element's "id"
attribute.
See for information about how current values are determined.
Generate a <select> element for the .
A instance for the current scope.
for the . If null, determines validation
attributes using and the .
Optional text for a default empty <option> element.
Expression name, relative to the current model.
A collection of objects used to populate the <select> element with
<optgroup> and <option> elements. If null, finds this collection at
ViewContext.ViewData[expression].
An containing values for <option> elements to select. If
null, selects <option> elements based on values in
.
If true, includes a multiple attribute in the generated HTML. Otherwise generates a
single-selection <select> element.
An that contains the HTML attributes for the <select> element. Alternatively, an
instance containing the HTML attributes.
A new describing the <select> element.
Combines and to set
<select> element's "name" attribute. Sanitizes to set element's "id"
attribute.
See for information about how the
collection may be created.
Generates <optgroup> and <option> elements.
Optional text for a default empty <option> element.
A collection of objects used to generate <optgroup> and <option>
elements.
An instance for <optgroup> and <option> elements.
Generate a element if the 's
contains an error for the .
A instance for the current scope.
The for the .
Expression name, relative to the current model.
The message to be displayed. If null or empty, method extracts an error string from the
object. Message will always be visible but client-side
validation may update the associated CSS class.
The tag to wrap the in the generated HTML. Its default value is
.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
A containing a element if the
's contains an error for the
or (as a placeholder) if client-side validation is enabled. null if
the is valid and client-side validation is disabled.
is "span" by default.
Gets the collection of current values for the given .
A instance for the current scope.
for the . If null, calculates the
result using .
Expression name, relative to the current model.
If true, require a collection result. Otherwise, treat result as a
single value.
null if no result is found. Otherwise a
containing current values for the given
.
Converts the result to a . If that result is an
type, instead converts each item in the collection and returns
them separately.
If the result or the element type is an , returns a
containing the integer representation of the value as well
as all names for that value. Otherwise returns the default
conversion of the value.
See for information about how the return value may be used.
Provides for a Lambda expression.
Returns a instance describing the given .
The type of the 's .
The type of the result.
The containing the
against which is evaluated.
An expression to be evaluated against the current model.
A new instance describing the given .
Represents a set of data that persists only from one request to the next.
Loads the dictionary by using the registered .
Saves the dictionary by using the registered .
Marks all keys in the dictionary for retention.
Marks the specified key in the dictionary for retention.
The key to retain in the dictionary.
Returns an object that contains the element that is associated with the specified key,
without marking the key for deletion.
The key of the element to return.
An object that contains the element that is associated with the specified key.
A factory which provides access to an instance
for a request.
Gets or creates an instance for the request associated with the
given .
The .
An instance for the request associated with the given
.
Defines the contract for temporary-data providers that store data that is viewed on the next request.
Loads the temporary data.
The .
The temporary data.
Saves the temporary data.
The .
The values to save.
Default implementation of .
Initializes a new instance of that is backed by .
The used to serialize JSON.
The for use with custom (see
).
Associates a model object with it's corresponding .
Creates a new .
The .
The .
The model object. May be null.
Creates a new .
The .
The container .
The .
A model accessor function..
Creates a new .
The .
The container .
The .
The model object. May be null.
Gets the container .
The will most commonly be set as a result of calling
. In this case, the returned will
have it's set to the instance upon which
was called.
This however is not a requirement. The is informational, and may not
represent a type that defines the property represented by . This can
occur when constructing a based on evaluation of a complex
expression.
If calling code relies on a parent-child relationship between
instances, then use to validate this assumption.
Gets the .
Gets the model object.
Retrieving the object will execute the model accessor function if this
was provided with one.
Retrieving the will execute the model accessor function if this
was provided with one.
Gets the properties.
Includes a for each property of the
for .
Gets a for the given value.
The model value.
A .
Gets a for the property with given , or null if
the property cannot be found.
The property name.
A , or null.
Gets a for the property with given , or null if
the property cannot be found.
The property name.
An accessor for the model value.
A , or null.
As this creates a model explorer with a specific model accessor function, the result is not cached.
Gets a for the property with given , or null if
the property cannot be found.
The property name.
The model value.
A , or null.
As this creates a model explorer with a specific model value, the result is not cached.
Gets a for the provided model value and model .
The model .
The model value.
A .
A created by
represents the result of executing an arbitrary expression against the model contained
in the current instance.
The returned will have the current instance set as its .
Gets a for the provided model value and model .
The associated with the model.
The model value.
A .
A created by
represents the result of executing an arbitrary expression against the model contained
in the current instance.
The returned will have the current instance set as its .
Gets a for the provided model value and model .
The model .
A model accessor function.
A .
A created by
represents the result of executing an arbitrary expression against the model contained
in the current instance.
The returned will have the current instance set as its .
Gets a for the provided model value and model .
The associated with the model.
A model accessor function.
A .
A created by
represents the result of executing an arbitrary expression against the model contained
in the current instance.
The returned will have the current instance set as its .
Extension methods for .
Gets a simple display string for the property
of .
The .
A simple display string for the model.
Describes an passed to a tag helper.
Initializes a new instance of the class.
String representation of the of interest.
Includes the model and metadata about the of interest.
String representation of the of interest.
Metadata about the of interest.
Gets the model object for the of interest.
Getting will evaluate a compiled version of the original
.
Gets the model explorer for the of interest.
Getting will evaluate a compiled version of the original
.
A default implementation of .
Creates a new .
The .
The .
Extensions methods for .
Gets a for the provided and
.
The .
The declared of the model object.
The model object.
A for the and .
A filter that saves the for a request.
Provides session-state data to the current object.
String content which gets encoded when written.
Creates a new instance of
to be HTML encoded when is called.
Initializes a new instance of the class.
The .
The used to Load and Save data.
A default implementation of .
Creates a new .
The .
Gets or sets the formatted model value.
Will never return null to avoid problems when using HTML helpers within a template. Otherwise the
helpers could find elements in the `ViewDataDictionary`, not the intended Model properties.
The formatted model value.
Gets or sets the HTML field prefix.
Will never return null for consistency with .
The HTML field prefix.
Specifies that a tag helper property should be set with the current
when creating the tag helper. The property must have a
public set method.
Initializes a new instance of the class.
instance used to create
instances.
instance for this scope.
For use when creating a for a new top-level scope.
Initializes a new instance of the class based entirely on an existing
instance.
instance to copy initial values from.
For use when copying a instance and the declared
will not change e.g. when copying from a
instance to a base instance.
This constructor should not be used in any context where may be set to a value
incompatible with the declared type of .
Initializes a new instance of the class.
instance used to create
instances.
Internal for testing.
Initializes a new instance of the class.
instance used to create
instances.
of values expected. Used to set .
For use when creating a derived for a new top-level scope.
Initializes a new instance of the class.
instance used to create
instances.
instance for this scope.
of values expected. Used to set .
For use when creating a derived for a new top-level scope.
Initializes a new instance of the class based in part on an existing
instance.
instance to copy initial values from.
of values expected. Used to set .
For use when copying a instance and new instance's declared
is known but should be copied from the existing
instance e.g. when copying from a base instance to a
instance.
This constructor may throw if source.Model is non-null and incompatible with
. Pass model: null to
to ignore source.Model.
Initializes a new instance of the class based in part on an existing
instance. This constructor is careful to avoid exceptions may throw when
is null.
instance to copy initial values from.
Value for the property.
of values expected. Used to set .
For use when copying a instance and new instance's declared
and are known.
This constructor may throw if is non-null and incompatible with
.
Gets or sets the current model.
Gets the .
Gets the for an expression, the (if
non-null), or the declared .
Value is never null but may describe the class in some cases. This may for
example occur in controllers.
Gets or sets the for the .
Gets the .
Gets value of named in this .
Expression name, relative to the current model.
Value of named in this .
Looks up in the dictionary first. Falls back to evaluating it against
.
Gets value of named in this , formatted
using given .
Expression name, relative to the current model.
The composite format (see http://msdn.microsoft.com/en-us/library/txafckwd.aspx).
Value of named in this , formatted using
given .
Looks up in the dictionary first. Falls back to evaluating it against
.
Formats the given using given .
The value to format.
The composite format (see http://msdn.microsoft.com/en-us/library/txafckwd.aspx).
The formatted .
Gets for named in this
.
Expression name, relative to the current model.
for named in this
.
Looks up in the dictionary first. Falls back to evaluating it against
.
Set to ensure and
reflect the new .
New value.
Specifies that a controller property should be set with the current
when creating the controller. The property must have a public
set method.
Initializes a new instance of the class.
For use when creating a for a new top-level scope.
Initializes a new instance of the class based in part on an
existing instance.
For use when copying a instance and is known
but should be copied from the existing instance e.g. when copying from a base
instance to a instance.
This constructor may throw if source.Model is non-null and incompatible with
. Pass model: null to
to ignore source.Model.
Initializes a new instance of the class based in part on an
existing instance. This constructor is careful to avoid exceptions
may throw when is null.
For use when copying a instance and and
are known.
This constructor may throw if is non-null and incompatible with
.
Initializes a new instance of the class.
Internal for testing.
Gets for named in given
.
The that may contain the value.
Expression name, relative to viewData.Model.
for named in given .
Gets for named in given
.
The that may contain the value.
Expression name, relative to .
for named in given
.
Initializes a new instance of the class with info about a
lookup which has already been evaluated.
Initializes a new instance of the class with info about a
lookup which is evaluated when is read.
Executes an .
The default content-type header value for views, text/html; charset=utf-8.
Creates a new .
The .
The .
The .
The .
The .
The .
Gets the .
Gets the .
Gets the default .
Gets the .
Gets the .
Executes a view asynchronously.
The associated with the current request.
The .
The .
The .
The content-type header value to set in the response. If null,
will be used.
The HTTP status code to set in the response. May be null.
A which will complete when view execution is completed.
Extensions methods for .
Adds the specified to the instance
that is associated with the specified .
The type of the model.
The instance this method extends.
An expression to be evaluated against an item in the current model.
The error message to add.
Adds the specified to the instance
that is associated with the specified .
The type of the model.
The instance this method extends.
An expression to be evaluated against an item in the current model.
The to add.
The associated with the model.
Removes the specified from the .
The type of the model.
The instance this method extends.
An expression to be evaluated against an item in the current model.
true if the element is successfully removed; otherwise, false.
This method also returns false if was not found in the model-state dictionary.
Removes all the entries for the specified from the
.
The type of the model.
The instance this method extends.
An expression to be evaluated against an item in the current model.
Provides programmatic configuration for views in the MVC framework.
Gets or sets programmatic configuration for the HTML helpers and .
Gets a list s used by this application.
Gets a list of instances.
Represents an that renders a partial view to the response.
Gets or sets the HTTP status code.
Gets or sets the name of the partial view to render.
When null, defaults to .
Gets or sets the used for rendering the view for this result.
Gets or sets the used for rendering the view for this result.
Gets or sets the used to locate views.
When null, an instance of from
ActionContext.HttpContext.RequestServices is used.
Gets or sets the Content-Type header for the response.
A which configures Unobtrusive validation to send an Ajax request to the
web site. The invoked action should return JSON indicating whether the value is valid.
Does no server-side validation of the final form submission.
Initializes a new instance of the class.
Intended for subclasses that support URL generation with no route, action, or controller names.
Initializes a new instance of the class.
The route name used when generating the URL where client should send a validation request.
Finds the in any area of the application.
Initializes a new instance of the class.
The action name used when generating the URL where client should send a validation request.
The controller name used when generating the URL where client should send a validation request.
If either or is null, uses the corresponding
ambient value.
Finds the in the current area.
Initializes a new instance of the class.
The action name used when generating the URL where client should send a validation request.
The controller name used when generating the URL where client should send a validation request.
The name of the area containing the .
If either or is null, uses the corresponding
ambient value.
If is null, finds the in the root area.
Use the overload find the in
the current area. Or explicitly pass the current area's name as the argument to
this overload.
Gets or sets the HTTP method ("Get" or "Post") client should use when sending a validation
request.
Gets or sets the comma-separated names of fields the client should include in a validation request.
Gets the used when generating the URL where client should send a
validation request.
Gets or sets the route name used when generating the URL where client should send a validation request.
Formats and for use in generated HTML.
Name of the property associated with this instance.
Comma-separated names of fields the client should include in a validation request.
Excludes any whitespace from in the return value.
Prefixes each field name in the return value with "*.".
Formats for use in generated HTML.
One field name the client should include in a validation request.
Name of a field the client should include in a validation request.
Returns with a "*." prefix.
Returns the URL where the client should send a validation request.
The used to generate the URL.
The URL where the client should send a validation request.
Always returns true since this does no validation itself.
Related validations occur only when the client sends a validation request.
A filter that prevents execution of the StatusCodePages middleware.
Specifies that the class or method that this attribute is applied validates the anti-forgery token.
If the anti-forgery token is not available, or if the token is invalid, the validation will fail
and the action method will not execute.
This attribute helps defend against cross-site request forgery. It won't prevent other forgery or tampering
attacks.
Gets the order value for determining the order of execution of filters. Filters execute in
ascending numeric value of the property.
Filters are executed in an ordering determined by an ascending sort of the property.
The default Order for this attribute is 1000 because it must run after any filter which does authentication
or login in order to allow them to behave as expected (ie Unauthenticated or Redirect instead of 400).
Look at for more detailed info.
A base class for view components.
Gets the .
Gets the .
Gets the for the current user.
Gets the for the current request.
Gets the view bag.
Gets the .
Gets or sets the .
Gets the .
Gets the .
Gets or sets the .
Returns a result which will render HTML encoded text.
The content, will be HTML encoded before output.
A .
Returns a result which will render the partial view with name "Default".
A .
Returns a result which will render the partial view with name .
The name of the partial view to render.
A .
Returns a result which will render the partial view with name "Default".
The model object for the view.
A .
Returns a result which will render the partial view with name .
The name of the partial view to render.
The model object for the view.
A .
Indicates the class and all subclasses are view components. Optionally specifies a view component's name. If
defining a base class for multiple view components, associate this attribute with that base.
Gets or sets the name of the view component. Do not supply a name in an attribute associated with a view
component base class.
An which renders a view component to the response.
Gets or sets the arguments provided to the view component.
Gets or sets the Content-Type header for the response.
Gets or sets the HTTP status code.
Gets or sets the for this result.
Gets or sets the name of the view component to invoke. Will be ignored if
is set to a non-null value.
Gets or sets the type of the view component to invoke.
Gets or sets the for this result.
Gets or sets the used to locate views.
When null, an instance of from
ActionContext.HttpContext.RequestServices is used.
Represents an that renders a view to the response.
Gets or sets the HTTP status code.
Gets or sets the name of the view to render.
When null, defaults to .
Gets the view data model.
Gets or sets the for this result.
Gets or sets the for this result.
Gets or sets the used to locate views.
When null, an instance of from
ActionContext.HttpContext.RequestServices is used.
Gets or sets the Content-Type header for the response.
Controls the value-rendering method For HTML5 input elements of types such as date, time, datetime and
datetime-local.
Render date and time values as Rfc3339 compliant strings to support HTML5 date and time types of input
elements.
Render date and time values according to the current culture's ToString behavior.
Display-related extensions for and .
Returns HTML markup for the , using a display template. The template is found
using the 's .
The instance this method extends.
Expression name, relative to the current model. May identify a single property or an
that contains the properties to display.
A new containing the created HTML.
For example the default display template includes markup for each property in the
's value.
Example s include string.Empty which identifies the current model and
"prop" which identifies the current model's "prop" property.
Custom templates are found under a DisplayTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the , using a display template and specified
additional view data. The template is found using the 's
.
The instance this method extends.
Expression name, relative to the current model. May identify a single property or an
that contains the properties to display.
An anonymous or
that can contain additional view data that will be merged into the
instance created for the template.
A new containing the created HTML.
For example the default display template includes markup for each property in the
's value.
Example s include string.Empty which identifies the current model and
"prop" which identifies the current model's "prop" property.
Custom templates are found under a DisplayTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the , using a display template. The template is found
using the or the 's
.
The instance this method extends.
Expression name, relative to the current model. May identify a single property or an
that contains the properties to display.
The name of the template used to create the HTML markup.
A new containing the created HTML.
For example the default display template includes markup for each property in the
's value.
Example s include string.Empty which identifies the current model and
"prop" which identifies the current model's "prop" property.
Custom templates are found under a DisplayTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the , using a display template and specified
additional view data. The template is found using the or the
's .
The instance this method extends.
Expression name, relative to the current model. May identify a single property or an
that contains the properties to display.
The name of the template used to create the HTML markup.
An anonymous or
that can contain additional view data that will be merged into the
instance created for the template.
A new containing the created HTML.
For example the default display template includes markup for each property in the
's value.
Example s include string.Empty which identifies the current model and
"prop" which identifies the current model's "prop" property.
Custom templates are found under a DisplayTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the , using a display template and specified HTML
field name. The template is found using the or the
's.
The instance this method extends.
Expression name, relative to the current model. May identify a single property or an
that contains the properties to display.
The name of the template used to create the HTML markup.
A used to disambiguate the names of HTML elements that are created for
properties that have the same name.
A new containing the created HTML.
For example the default display template includes markup for each property in the
's value.
Example s include string.Empty which identifies the current model and
"prop" which identifies the current model's "prop" property.
Custom templates are found under a DisplayTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the , using a display template. The template is found
using the 's .
The instance this method extends.
An expression to be evaluated against the current model.
The type of the model.
The type of the result.
A new containing the created HTML.
For example the default display template includes markup for each property in the
result.
Custom templates are found under a DisplayTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the , using a display template and specified
additional view data. The template is found using the 's
.
The instance this method extends.
An expression to be evaluated against the current model.
An anonymous or
that can contain additional view data that will be merged into the
instance created for the template.
The type of the model.
The type of the result.
A new containing the created HTML.
For example the default display template includes markup for each property in the
result.
Custom templates are found under a DisplayTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the , using a display template. The template is found
using the or the 's
.
The instance this method extends.
An expression to be evaluated against the current model.
The name of the template used to create the HTML markup.
The type of the model.
The type of the result.
A new containing the created HTML.
For example the default display template includes markup for each property in the
result.
Custom templates are found under a DisplayTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the , using a display template and specified
additional view data. The template is found using the or the
's .
The instance this method extends.
An expression to be evaluated against the current model.
The name of the template used to create the HTML markup.
An anonymous or
that can contain additional view data that will be merged into the
instance created for the template.
The type of the model.
The type of the result.
A new containing the created HTML.
For example the default display template includes markup for each property in the
result.
Custom templates are found under a DisplayTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the , using a display template and specified HTML
field name. The template is found using the or the
's .
The instance this method extends.
An expression to be evaluated against the current model.
The name of the template used to create the HTML markup.
A used to disambiguate the names of HTML elements that are created for properties
that have the same name.
The type of the model.
The type of the result.
A new containing the created HTML.
For example the default display template includes markup for each property in the
result.
Custom templates are found under a DisplayTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the current model, using a display template. The template is found using the
model's .
The instance this method extends.
A new containing the created HTML.
For example the default display template includes markup for each property in the
current model.
Custom templates are found under a DisplayTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the current model, using a display template and specified additional view data. The
template is found using the model's .
The instance this method extends.
An anonymous or
that can contain additional view data that will be merged into the
instance created for the template.
A new containing the created HTML.
For example the default display template includes markup for each property in the
current model.
Custom templates are found under a DisplayTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the current model, using a display template. The template is found using the
or the model's .
The instance this method extends.
The name of the template used to create the HTML markup.
A new containing the created HTML.
For example the default display template includes markup for each property in the
current model.
Custom templates are found under a DisplayTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the current model, using a display template and specified additional view data. The
template is found using the or the model's
.
The instance this method extends.
The name of the template used to create the HTML markup.
An anonymous or
that can contain additional view data that will be merged into the
instance created for the template.
A new containing the created HTML.
For example the default display template includes markup for each property in the
current model.
Custom templates are found under a DisplayTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the current model, using a display template and specified HTML field name. The
template is found using the or the model's
.
The instance this method extends.
The name of the template used to create the HTML markup.
A used to disambiguate the names of HTML elements that are created for
properties that have the same name.
A new containing the created HTML.
For example the default display template includes markup for each property in the
current model.
Custom templates are found under a DisplayTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the current model, using a display template, specified HTML field name, and
additional view data. The template is found using the or the model's
.
The instance this method extends.
The name of the template used to create the HTML markup.
A used to disambiguate the names of HTML elements that are created for
properties that have the same name.
An anonymous or
that can contain additional view data that will be merged into the
instance created for the template.
A new containing the created HTML.
For example the default display template includes markup for each property in the
current model.
Custom templates are found under a DisplayTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
DisplayName-related extensions for and .
Returns the display name for the current model.
The instance this method extends.
A containing the display name.
Returns the display name for the specified
if the current model represents a collection.
The of instance this method extends.
An expression to be evaluated against an item in the current model.
The type of items in the model collection.
The type of the result.
A containing the display name.
Editor-related extensions for and .
Returns HTML markup for the , using an editor template. The template is found
using the 's .
The instance this method extends.
Expression name, relative to the current model. May identify a single property or an
that contains the properties to edit.
A new containing the <input> element(s).
For example the default editor template includes <label> and <input>
elements for each property in the 's value.
Example s include string.Empty which identifies the current model and
"prop" which identifies the current model's "prop" property.
Custom templates are found under a EditorTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the , using an editor template and specified
additional view data. The template is found using the 's
.
The instance this method extends.
Expression name, relative to the current model. May identify a single property or an
that contains the properties to edit.
An anonymous or
that can contain additional view data that will be merged into the
instance created for the template.
A new containing the <input> element(s).
For example the default editor template includes <label> and <input>
elements for each property in the 's value.
Example s include string.Empty which identifies the current model and
"prop" which identifies the current model's "prop" property.
Custom templates are found under a EditorTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the , using an editor template. The template is found
using the or the 's
.
The instance this method extends.
Expression name, relative to the current model. May identify a single property or an
that contains the properties to edit.
The name of the template used to create the HTML markup.
A new containing the <input> element(s).
For example the default editor template includes <label> and <input>
elements for each property in the 's value.
Example s include string.Empty which identifies the current model and
"prop" which identifies the current model's "prop" property.
Custom templates are found under a EditorTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the , using an editor template and specified
additional view data. The template is found using the or the
's .
The instance this method extends.
Expression name, relative to the current model. May identify a single property or an
that contains the properties to edit.
The name of the template used to create the HTML markup.
An anonymous or
that can contain additional view data that will be merged into the
instance created for the template.
A new containing the <input> element(s).
For example the default editor template includes <label> and <input>
elements for each property in the 's value.
Example s include string.Empty which identifies the current model and
"prop" which identifies the current model's "prop" property.
Custom templates are found under a EditorTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the , using an editor template and specified HTML
field name. The template is found using the or the
's .
The instance this method extends.
Expression name, relative to the current model. May identify a single property or an
that contains the properties to edit.
The name of the template used to create the HTML markup.
A used to disambiguate the names of HTML elements that are created for
properties that have the same name.
A new containing the <input> element(s).
For example the default editor template includes <label> and <input>
elements for each property in the 's value.
Example s include string.Empty which identifies the current model and
"prop" which identifies the current model's "prop" property.
Custom templates are found under a EditorTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the , using an editor template. The template is found
using the 's .
The instance this method extends.
An expression to be evaluated against the current model.
The type of the model.
The type of the result.
A new containing the <input> element(s).
For example the default editor template includes <label> and <input>
elements for each property in the result.
Custom templates are found under a EditorTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the , using an editor template and specified
additional view data. The template is found using the 's
.
The instance this method extends.
An expression to be evaluated against the current model.
An anonymous or
that can contain additional view data that will be merged into the
instance created for the template.
The type of the model.
The type of the result.
A new containing the <input> element(s).
For example the default editor template includes <label> and <input>
elements for each property in the result.
Custom templates are found under a EditorTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the , using an editor template. The template is found
using the or the 's
.
The instance this method extends.
An expression to be evaluated against the current model.
The name of the template that is used to create the HTML markup.
The type of the model.
The type of the result.
A new containing the <input> element(s).
For example the default editor template includes <label> and <input>
elements for each property in the result.
Custom templates are found under a EditorTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the , using an editor template and specified
additional view data. The template is found using the or the
's .
The instance this method extends.
An expression to be evaluated against the current model.
The name of the template that is used to create the HTML markup.
An anonymous or
that can contain additional view data that will be merged into the
instance created for the template.
The type of the model.
The type of the result.
A new containing the <input> element(s).
For example the default editor template includes <label> and <input>
elements for each property in the result.
Custom templates are found under a EditorTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the , using an editor template and specified HTML
field name. The template is found using the or the
's .
The instance this method extends.
An expression to be evaluated against the current model.
The name of the template that is used to create the HTML markup.
A used to disambiguate the names of HTML elements that are created for properties
that have the same name.
The type of the model.
The type of the result.
A new containing the <input> element(s).
For example the default editor template includes <label> and <input>
elements for each property in the result.
Custom templates are found under a EditorTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the current model, using an editor template. The template is found using the
model's .
The instance this method extends.
A new containing the <input> element(s).
For example the default editor template includes <label> and <input>
elements for each property in the current model.
Custom templates are found under a EditorTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the current model, using an editor template and specified additional view data. The
template is found using the model's .
The instance this method extends.
An anonymous or
that can contain additional view data that will be merged into the
instance created for the template.
A new containing the <input> element(s).
For example the default editor template includes <label> and <input>
elements for each property in the current model.
Custom templates are found under a EditorTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the current model, using an editor template. The template is found using the
or the model's .
The instance this method extends.
The name of the template used to create the HTML markup.
A new containing the <input> element(s).
For example the default editor template includes <label> and <input>
elements for each property in the current model.
Custom templates are found under a EditorTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the current model, using an editor template and specified additional view data. The
template is found using the or the model's
.
The instance this method extends.
The name of the template used to create the HTML markup.
An anonymous or
that can contain additional view data that will be merged into the
instance created for the template.
A new containing the <input> element(s).
For example the default editor template includes <label> and <input>
elements for each property in the current model.
Custom templates are found under a EditorTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the current model, using an editor template and specified HTML field name. The
template is found using the or the model's
.
The instance this method extends.
The name of the template used to create the HTML markup.
A used to disambiguate the names of HTML elements that are created for
properties that have the same name.
A new containing the <input> element(s).
For example the default editor template includes <label> and <input>
elements for each property in the current model.
Custom templates are found under a EditorTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Returns HTML markup for the current model, using an editor template, specified HTML field name, and
additional view data. The template is found using the or the model's
.
The instance this method extends.
The name of the template used to create the HTML markup.
A used to disambiguate the names of HTML elements that are created for
properties that have the same name.
An anonymous or
that can contain additional view data that will be merged into the
instance created for the template.
A new containing the <input> element(s).
For example the default editor template includes <label> and <input>
elements for each property in the current model.
Custom templates are found under a EditorTemplates folder. The folder name is case-sensitive on
case-sensitive file systems.
Form-related extensions for .
Renders a <form> start tag to the response. The <form>'s action attribute value will
match the current request.
The instance this method extends.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. The <form>'s action attribute value will
match the current request.
The instance this method extends.
If true, <form> elements will include an antiforgery token.
If false, suppresses the generation an <input> of type "hidden" with an antiforgery token.
If null, <form> elements will include an antiforgery token.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. When the user submits the form, the
current action will process the request.
The instance this method extends.
The HTTP method for processing the form, either GET or POST.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. When the user submits the form, the
current action will process the request.
The instance this method extends.
The HTTP method for processing the form, either GET or POST.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML
attributes.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. When the user submits the form, the
current action will process the request.
The instance this method extends.
The HTTP method for processing the form, either GET or POST.
If true, <form> elements will include an antiforgery token.
If false, suppresses the generation an <input> of type "hidden" with an antiforgery token.
If null, <form> elements will include an antiforgery token only if
is not .
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML
attributes.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. When the user submits the form, the
current action will process the request.
The instance this method extends.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route
parameters.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. When the user submits the form, the action with name
will process the request.
The instance this method extends.
The name of the action method.
The name of the controller.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. When the user submits the form, the action with name
will process the request.
The instance this method extends.
The name of the action method.
The name of the controller.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route
parameters.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. When the user submits the form, the action with name
will process the request.
The instance this method extends.
The name of the action method.
The name of the controller.
The HTTP method for processing the form, either GET or POST.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. When the user submits the form, the action with name
will process the request.
The instance this method extends.
The name of the action method.
The name of the controller.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route
parameters.
The HTTP method for processing the form, either GET or POST.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. When the user submits the form, the action with name
will process the request.
The instance this method extends.
The name of the action method.
The name of the controller.
The HTTP method for processing the form, either GET or POST.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML
attributes.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. The first route that can provide a URL with the
specified generates the <form>'s action attribute value.
The instance this method extends.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route
parameters.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. The first route that can provide a URL with the
specified generates the <form>'s action attribute value.
The instance this method extends.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route
parameters.
If true, <form> elements will include an antiforgery token.
If false, suppresses the generation an <input> of type "hidden" with an antiforgery token.
If null, <form> elements will include an antiforgery token.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. The route with name
generates the <form>'s action attribute value.
The instance this method extends.
The name of the route.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. The route with name
generates the <form>'s action attribute value.
The instance this method extends.
The name of the route.
If true, <form> elements will include an antiforgery token.
If false, suppresses the generation an <input> of type "hidden" with an antiforgery token.
If null, <form> elements will include an antiforgery token.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. The route with name
generates the <form>'s action attribute value.
The instance this method extends.
The name of the route.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route
parameters.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. The route with name
generates the <form>'s action attribute value.
The instance this method extends.
The name of the route.
The HTTP method for processing the form, either GET or POST.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. The route with name
generates the <form>'s action attribute value.
The instance this method extends.
The name of the route.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route
parameters.
The HTTP method for processing the form, either GET or POST.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. The route with name
generates the <form>'s action attribute value.
The instance this method extends.
The name of the route.
The HTTP method for processing the form, either GET or POST.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML
attributes.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Input-related extensions for and .
Returns an <input> element of type "checkbox" with value "true" and an <input> element of type
"hidden" with value "false".
The instance this method extends.
Expression name, relative to the current model.
A new containing the <input> elements.
Combines and to set
checkbox element's "name" attribute. Sanitizes to set checkbox element's "id"
attribute.
Determines checkbox element's "checked" attribute based on the following precedence:
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property.
- Otherwise, does not include a "checked" attribute.
In all but the default case, includes a "checked" attribute with
value "checked" if the values is true; does not include the attribute otherwise.
Returns an <input> element of type "checkbox" with value "true" and an <input> element of type
"hidden" with value "false".
The instance this method extends.
Expression name, relative to the current model.
If true, checkbox is initially checked.
A new containing the <input> elements.
Combines and to set
checkbox element's "name" attribute. Sanitizes to set checkbox element's "id"
attribute.
Determines checkbox element's "checked" attribute based on the following precedence:
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
- if non-null.
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property.
- Otherwise, does not include a "checked" attribute.
In all but the default case, includes a "checked" attribute with
value "checked" if the values is true; does not include the attribute otherwise.
Returns an <input> element of type "checkbox" with value "true" and an <input> element of type
"hidden" with value "false".
The instance this method extends.
Expression name, relative to the current model.
An that contains the HTML attributes for the checkbox element. Alternatively, an
instance containing the HTML
attributes.
A new containing the <input> elements.
Combines and to set
checkbox element's "name" attribute. Sanitizes to set checkbox element's "id"
attribute.
Determines checkbox element's "checked" attribute based on the following precedence:
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property.
- Existing "checked" entry in if any.
- Otherwise, does not include a "checked" attribute.
In all but the and default cases, includes a "checked" attribute with
value "checked" if the values is true; does not include the attribute otherwise.
Returns an <input> element of type "checkbox" with value "true" and an <input> element of type
"hidden" with value "false".
The instance this method extends.
An expression to be evaluated against the current model.
A new containing the <input> elements.
Combines and the string representation of the
to set checkbox element's "name" attribute. Sanitizes the string
representation of the to set checkbox element's "id" attribute.
Determines checkbox element's "checked" attribute based on the following precedence:
-
entry for the string representation of the
if entry exists and can be converted to a .
-
result if it is non-null and can be parsed as a
.
- Otherwise, does not include a "checked" attribute.
In all but the default case, includes a "checked" attribute with
value "checked" if the values is true; does not include the attribute otherwise.
Returns an <input> element of type "hidden" for the specified .
The instance this method extends.
Expression name, relative to the current model.
A new containing the <input> element.
Combines and to set
<input> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Determines <input> element's "value" attribute based on the following precedence:
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property.
- Otherwise, string.Empty.
Returns an <input> element of type "hidden" for the specified .
The instance this method extends.
Expression name, relative to the current model.
If non-null, value to include in the element.
A new containing the <input> element.
Combines and to set
<input> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Determines <input> element's "value" attribute based on the following precedence:
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
- if non-null.
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property.
- Otherwise, string.Empty.
Returns an <input> element of type "hidden" for the specified .
The instance this method extends.
An expression to be evaluated against the current model.
The type of the model.
The type of the result.
A new containing the <input> element.
Combines and the string representation of the
to set <input> element's "name" attribute. Sanitizes the string
representation of the to set element's "id" attribute.
Determines <input> element's "value" attribute based on the following precedence:
-
entry for the string representation of the
if entry exists and can be converted to a .
-
result if it is non-null and can be parsed as a
.
- Otherwise, string.Empty.
Returns an <input> element of type "password" for the specified .
The instance this method extends.
Expression name, relative to the current model.
A new containing the <input> element.
Combines and to set
<input> element's "name" attribute. Sanitizes to set element's "id"
attribute. Sets <input> element's "value" attribute to string.Empty.
Returns an <input> element of type "password" for the specified .
The instance this method extends.
Expression name, relative to the current model.
If non-null, value to include in the element.
A new containing the <input> element.
Combines and to set
<input> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Determines <input> element's "value" attribute based on the following precedence:
- if non-null.
- Otherwise, string.Empty.
Returns an <input> element of type "password" for the specified .
The instance this method extends.
An expression to be evaluated against the current model.
The type of the model.
The type of the result.
A new containing the <input> element.
Combines and the string representation of the
to set <input> element's "name" attribute. Sanitizes the string
representation of the to set element's "id" attribute.
Determines <input> element's "value" attribute based on the following precedence:
-
result if it is non-null and can be parsed as a
.
- Otherwise, string.Empty.
Returns an <input> element of type "radio" for the specified .
The instance this method extends.
Expression name, relative to the current model.
Value to include in the element. Must not be null.
A new containing the <input> element.
Combines and to set
<input> element's "name" attribute. Sanitizes to set element's "id"
attribute. Sets <input> element's "value" attribute to .
Determines <input> element's "checked" attribute based on the following precedence:
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property.
- Otherwise, does not include a "checked" attribute.
In all but the default case, includes a "checked" attribute with
value "checked" if the values is equal to a converted for
; does not include the attribute otherwise.
Returns an <input> element of type "radio" for the specified .
The instance this method extends.
Expression name, relative to the current model.
If non-null, value to include in the element. Must not be null if no "checked" entry exists
in .
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML
attributes.
A new containing the <input> element.
Combines and to set
<input> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Determines element's "value" attribute based on the following precedence:
- if non-null.
- Existing "value" entry in if any.
- Otherwise, string.Empty.
Determines <input> element's "checked" attribute based on the following precedence:
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
- Existing "checked" entry in if any.
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property.
- Otherwise, does not include a "checked" attribute.
In all but the and default cases, includes a "checked" attribute with
value "checked" if the values is equal to a converted for
; does not include the attribute otherwise.
Returns an <input> element of type "radio" for the specified .
The instance this method extends.
Expression name, relative to the current model.
If non-null, value to include in the element. Must not be null if
is also null.
If true, radio button is initially selected. Must not be null if
is also null.
A new containing the <input> element.
Combines and to set
<input> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Determines element's "value" attribute based on the following precedence:
- if non-null.
- Otherwise, string.Empty.
Determines <input> element's "checked" attribute based on the following precedence:
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
- if non-null.
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property.
- Otherwise, does not include a "checked" attribute.
In all but the default case, includes a "checked" attribute with
value "checked" if the values is equal to a converted for
or is true (for that case); does not include
the attribute otherwise.
Returns an <input> element of type "radio" for the specified .
The instance this method extends.
An expression to be evaluated against the current model.
Value to include in the element. Must not be null.
The type of the model.
The type of the result.
A new containing the <input> element.
Combines and the string representation of the
to set <select> element's "name" attribute. Sanitizes the string
representation of the to set element's "id" attribute. Converts the
to a to set element's "value" attribute.
Determines <input> element's "checked" attribute based on the following precedence:
-
entry for the string representation of the
if entry exists and can be converted to a .
-
result if it is non-null and can be parsed as a .
- Otherwise, does not include a "checked" attribute.
In all but the default case, includes a "checked" attribute with
value "checked" if the values is equal to a converted for
; does not include the attribute otherwise.
Returns an <input> element of type "text" for the specified .
The instance this method extends.
Expression name, relative to the current model.
A new containing the <input> element.
Combines and to set
<input> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Determines <input> element's "value" attribute based on the following precedence:
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property.
- Otherwise, string.Empty.
Returns an <input> element of type "text" for the specified .
The instance this method extends.
Expression name, relative to the current model.
If non-null, value to include in the element.
A new containing the <input> element.
Combines and to set
<input> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Determines <input> element's "value" attribute based on the following precedence:
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
if non-null.
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property.
- Otherwise, string.Empty.
Returns an <input> element of type "text" for the specified .
The instance this method extends.
Expression name, relative to the current model.
If non-null, value to include in the element.
The composite format (see http://msdn.microsoft.com/en-us/library/txafckwd.aspx).
A new containing the <input> element.
Combines and to set
<input> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Determines <input> element's "value" attribute based on the following precedence:
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
if non-null. Formats using
or converts to a directly if
is null or empty.
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a . Formats entry using
or converts entry to a directly if
is null or empty.
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property. Formats result using or converts result to a
directly if is null or empty.
- Otherwise, string.Empty.
Returns an <input> element of type "text" for the specified .
The instance this method extends.
Expression name, relative to the current model.
If non-null, value to include in the element.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML
attributes.
A new containing the <input> element.
Combines and to set
<input> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Determines <input> element's "value" attribute based on the following precedence:
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
if non-null.
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property.
- Existing "value" entry in if any.
- Otherwise, string.Empty.
Returns an <input> element of type "text" for the specified .
The instance this method extends.
An expression to be evaluated against the current model.
The type of the model.
The type of the result.
A new containing the <input> element.
Combines and the string representation of the
to set <input> element's "name" attribute. Sanitizes the string
representation of the to set element's "id" attribute.
Determines <input> element's "value" attribute based on the following precedence:
-
entry for the string representation of the
if entry exists and can be converted to a .
-
result if it is non-null and can be parsed as a .
- Otherwise, string.Empty.
Returns an <input> element of type "text" for the specified .
The instance this method extends.
An expression to be evaluated against the current model.
The composite format (see http://msdn.microsoft.com/en-us/library/txafckwd.aspx).
The type of the model.
The type of the result.
A new containing the <input> element.
Combines and the string representation of the
to set <input> element's "name" attribute. Sanitizes the string
representation of the to set element's "id" attribute.
Determines <input> element's "value" attribute based on the following precedence:
-
entry for the string representation of the
if entry exists and can be converted to a .
-
result if it is non-null and can be parsed as a .
Formats result using or converts result to a directly if
is null or empty.
- Otherwise, string.Empty.
Returns an <input> element of type "text" for the specified .
The instance this method extends.
An expression to be evaluated against the current model.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML
attributes.
The type of the model.
The type of the result.
A new containing the <input> element.
Combines and the string representation of the
to set <input> element's "name" attribute. Sanitizes the string
representation of the to set element's "id" attribute.
Determines <input> element's "value" attribute based on the following precedence:
-
entry for the string representation of the
if entry exists and can be converted to a .
-
result if it is non-null and can be parsed as a .
- Existing "value" entry in if any.
- Otherwise, string.Empty.
Returns a <textarea> element for the specified .
The instance this method extends.
Expression name, relative to the current model.
A new containing the <textarea> element.
Combines and to set
<textarea> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Determines <textarea> element's content based on the following precedence:
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property.
- Otherwise, string.Empty.
Returns a <textarea> element for the specified .
The instance this method extends.
Expression name, relative to the current model.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML
attributes.
A new containing the <textarea> element.
Combines and to set
<textarea> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Determines <textarea> element's content based on the following precedence:
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property.
- Otherwise, string.Empty.
Returns a <textarea> element for the specified .
The instance this method extends.
Expression name, relative to the current model.
If non-null, value to include in the element.
A new containing the <textarea> element.
Combines and to set
<textarea> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Determines <textarea> element's content based on the following precedence:
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
- if non-null.
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property.
- Otherwise, string.Empty.
Returns a <textarea> element for the specified .
The instance this method extends.
Expression name, relative to the current model.
If non-null, value to include in the element.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML
attributes.
A new containing the <textarea> element.
Combines and to set
<textarea> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Determines <textarea> element's content based on the following precedence:
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
- if non-null.
-
entry for (converted to a
fully-qualified name) if entry exists and can be converted to a .
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property.
- Otherwise, string.Empty.
Returns a <textarea> element for the specified .
The instance this method extends.
An expression to be evaluated against the current model.
The type of the model.
The type of the result.
A new containing the <textarea> element.
Combines and the string representation of the
to set <textarea> element's "name" attribute. Sanitizes the string
representation of the to set element's "id" attribute.
Determines <textarea> element's content based on the following precedence:
-
entry for the string representation of the
if entry exists and can be converted to a .
-
result if it is non-null and can be parsed as a .
- Otherwise, string.Empty.
Returns a <textarea> element for the specified .
The instance this method extends.
An expression to be evaluated against the current model.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML
attributes.
The type of the model.
The type of the result.
A new containing the <textarea> element.
Combines and the string representation of the
to set <textarea> element's "name" attribute. Sanitizes the string
representation of the to set element's "id" attribute.
Determines <textarea> element's content based on the following precedence:
-
entry for the string representation of the
if entry exists and can be converted to a .
-
result if it is non-null and can be parsed as a .
- Otherwise, string.Empty.
Label-related extensions for and .
Returns a <label> element for the specified .
The instance this method extends.
Expression name, relative to the current model.
A new containing the <label> element.
Returns a <label> element for the specified .
The instance this method extends.
Expression name, relative to the current model.
The inner text of the element.
A new containing the <label> element.
Returns a <label> element for the specified .
The instance this method extends.
An expression to be evaluated against the current model.
The type of the model.
The type of the result.
A new containing the <label> element.
Returns a <label> element for the specified .
The instance this method extends.
An expression to be evaluated against the current model.
The inner text of the element.
The type of the model.
The type of the result.
A new containing the <label> element.
Returns a <label> element for the specified .
The instance this method extends.
An expression to be evaluated against the current model.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML
attributes.
The type of the model.
The type of the result.
A new containing the <label> element.
Returns a <label> element for the current model.
The instance this method extends.
A new containing the <label> element.
Returns a <label> element for the current model.
The instance this method extends.
The inner text of the element.
A new containing the <label> element.
Returns a <label> element for the current model.
The instance this method extends.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML
attributes.
A new containing the <label> element.
Returns a <label> element for the current model.
The instance this method extends.
The inner text of the element.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML
attributes.
A new containing the <label> element.
Link-related extensions for .
Returns an anchor (<a>) element that contains a URL path to the specified action.
The instance this method extends.
The inner text of the anchor element. Must not be null.
The name of the action.
A new containing the anchor element.
Returns an anchor (<a>) element that contains a URL path to the specified action.
The instance this method extends.
The inner text of the anchor element. Must not be null.
The name of the action.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route
parameters.
A new containing the anchor element.
Returns an anchor (<a>) element that contains a URL path to the specified action.
The instance this method extends.
The inner text of the anchor element. Must not be null.
The name of the action.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route
parameters.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML
attributes.
A new containing the anchor element.
Returns an anchor (<a>) element that contains a URL path to the specified action.
The instance this method extends.
The inner text of the anchor element. Must not be null.
The name of the action.
The name of the controller.
A new containing the anchor element.
Returns an anchor (<a>) element that contains a URL path to the specified action.
The instance this method extends.
The inner text of the anchor element. Must not be null.
The name of the action.
The name of the controller.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route
parameters.
A new containing the anchor element.
Returns an anchor (<a>) element that contains a URL path to the specified action.
The instance this method extends.
The inner text of the anchor element. Must not be null.
The name of the action.
The name of the controller.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route
parameters.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML
attributes.
A new containing the anchor element.
Returns an anchor (<a>) element that contains a URL path to the specified route.
The instance this method extends.
The inner text of the anchor element. Must not be null.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route
parameters.
A new containing the anchor element.
Returns an anchor (<a>) element that contains a URL path to the specified route.
The instance this method extends.
The inner text of the anchor element. Must not be null.
The name of the route.
A new containing the anchor element.
Returns an anchor (<a>) element that contains a URL path to the specified route.
The instance this method extends.
The inner text of the anchor element. Must not be null.
The name of the route.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route
parameters.
A new containing the anchor element.
Returns an anchor (<a>) element that contains a URL path to the specified route.
The instance this method extends.
The inner text of the anchor element. Must not be null.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route
parameters.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML
attributes.
A new containing the anchor element.
Returns an anchor (<a>) element that contains a URL path to the specified route.
The instance this method extends.
The inner text of the anchor element. Must not be null.
The name of the route.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route
parameters.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML
attributes.
A new containing the anchor element.
Name-related extensions for .
Returns the full HTML element name for the current model.
The instance this method extends.
A containing the element name.
Returns the HTML element Id for the current model.
The instance this method extends.
A containing the element Id.
PartialView-related extensions for .
Returns HTML markup for the specified partial view.
The instance this method extends.
The name of the partial view used to create the HTML markup. Must not be null.
A that on completion returns a new instance containing
the created HTML.
Returns HTML markup for the specified partial view.
The instance this method extends.
The name of the partial view used to create the HTML markup. Must not be null.
A to pass into the partial view.
A that on completion returns a new instance containing
the created HTML.
Returns HTML markup for the specified partial view.
The instance this method extends.
The name of the partial view used to create the HTML markup. Must not be null.
A model to pass into the partial view.
A that on completion returns a new instance containing
the created HTML.
Returns HTML markup for the specified partial view.
The instance this method extends.
The name of the partial view used to create the HTML markup. Must not be null.
Returns a new instance containing the created HTML.
This method synchronously calls and blocks on
Returns HTML markup for the specified partial view.
The instance this method extends.
The name of the partial view used to create the HTML markup. Must not be null.
A to pass into the partial view.
Returns a new instance containing the created HTML.
This method synchronously calls and blocks on
Returns HTML markup for the specified partial view.
The instance this method extends.
The name of the partial view used to create the HTML markup. Must not be null.
A model to pass into the partial view.
Returns a new instance containing the created HTML.
This method synchronously calls and blocks on
Returns HTML markup for the specified partial view.
The instance this method extends.
The name of the partial view used to create the HTML markup. Must not be null.
A model to pass into the partial view.
A to pass into the partial view.
Returns a new instance containing the created HTML.
This method synchronously calls and blocks on
Renders HTML markup for the specified partial view.
The instance this method extends.
The name of the partial view used to create the HTML markup. Must not be null.
In this context, "renders" means the method writes its output using .
Renders HTML markup for the specified partial view.
The instance this method extends.
The name of the partial view used to create the HTML markup. Must not be null.
A to pass into the partial view.
In this context, "renders" means the method writes its output using .
Renders HTML markup for the specified partial view.
The instance this method extends.
The name of the partial view used to create the HTML markup. Must not be null.
A model to pass into the partial view.
In this context, "renders" means the method writes its output using .
Renders HTML markup for the specified partial view.
The instance this method extends.
The name of the partial view used to create the HTML markup. Must not be null.
A that renders the created HTML when it executes.
In this context, "renders" means the method writes its output using .
Renders HTML markup for the specified partial view.
The instance this method extends.
The name of the partial view used to create the HTML markup. Must not be null.
A to pass into the partial view.
A that renders the created HTML when it executes.
In this context, "renders" means the method writes its output using .
Renders HTML markup for the specified partial view.
The instance this method extends.
The name of the partial view used to create the HTML markup. Must not be null.
A model to pass into the partial view.
A that renders the created HTML when it executes.
In this context, "renders" means the method writes its output using .
Select-related extensions for and .
Returns a single-selection HTML <select> element for the .
The instance this method extends.
Expression name, relative to the current model.
A new containing the <select> element.
Combines and to set
<select> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Returns a single-selection HTML <select> element for the , using the
option label.
The instance this method extends.
Expression name, relative to the current model.
The text for a default empty item. Does not include such an item if argument is null.
A new containing the <select> element.
Combines and to set
<select> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Returns a single-selection HTML <select> element for the , using the
specified list items.
The instance this method extends.
Expression name, relative to the current model.
A collection of objects used to populate the <select> element with
<optgroup> and <option> elements.
A new containing the <select> element.
Combines and to set
<select> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Returns a single-selection HTML <select> element for the , using the
specified list items and HTML attributes.
The instance this method extends.
Expression name, relative to the current model.
A collection of objects used to populate the <select> element with
<optgroup> and <option> elements.
An that contains the HTML attributes for the <select> element. Alternatively, an
instance containing the HTML attributes.
A new containing the <select> element.
Combines and to set
<select> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Returns a single-selection HTML <select> element for the , using the
specified list items and option label.
The instance this method extends.
Expression name, relative to the current model.
A collection of objects used to populate the <select> element with
<optgroup> and <option> elements.
The text for a default empty item. Does not include such an item if argument is null.
A new containing the <select> element.
Combines and to set
<select> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Returns a single-selection HTML <select> element for the , using the
specified list items.
The instance this method extends.
An expression to be evaluated against the current model.
A collection of objects used to populate the <select> element with
<optgroup> and <option> elements.
The type of the model.
The type of the result.
A new containing the <select> element.
Combines and the string representation of the
to set <select> element's "name" attribute. Sanitizes the string
representation of the to set element's "id" attribute.
Returns a single-selection HTML <select> element for the , using the
specified list items and HTML attributes.
The instance this method extends.
An expression to be evaluated against the current model.
A collection of objects used to populate the <select> element with
<optgroup> and <option> elements.
An that contains the HTML attributes for the <select> element. Alternatively, an
instance containing the HTML attributes.
The type of the model.
The type of the result.
A new containing the <select> element.
Combines and the string representation of the
to set <select> element's "name" attribute. Sanitizes the string
representation of the to set element's "id" attribute.
Returns a single-selection HTML <select> element for the , using the
specified list items and option label.
The instance this method extends.
An expression to be evaluated against the current model.
A collection of objects used to populate the <select> element with
<optgroup> and <option> elements.
The text for a default empty item. Does not include such an item if argument is null.
The type of the model.
The type of the result.
A new containing the <select> element.
Combines and the string representation of the
to set <select> element's "name" attribute. Sanitizes the string
representation of the to set element's "id" attribute.
Returns a multi-selection <select> element for the .
The instance this method extends.
Expression name, relative to the current model.
A new containing the <select> element.
Combines and to set
<select> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Returns a multi-selection <select> element for the , using the
specified list items.
The instance this method extends.
Expression name, relative to the current model.
A collection of objects used to populate the <select> element with
<optgroup> and <option> elements.
A new containing the <select> element.
Combines and to set
<select> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Returns a multi-selection <select> element for the , using the
specified list items.
The instance this method extends.
An expression to be evaluated against the current model.
A collection of objects used to populate the <select> element with
<optgroup> and <option> elements.
The type of the model.
The type of the result.
A new containing the <select> element.
Combines and the string representation of the
to set <select> element's "name" attribute. Sanitizes the string
representation of the to set element's "id" attribute.
Validation-related extensions for and .
Returns the validation message if an error exists in the
object for the specified .
The instance this method extends.
Expression name, relative to the current model.
A new containing a element.
null if the is valid and client-side validation is disabled.
Method extracts an error string from the object. Message
will always be visible but client-side validation may update the associated CSS class.
Returns the validation message if an error exists in the
object for the specified .
The instance this method extends.
Expression name, relative to the current model.
The message to be displayed. If null or empty, method extracts an error string from the
object. Message will always be visible but client-side
validation may update the associated CSS class.
A new containing a element.
null if the is valid and client-side validation is disabled.
Returns the validation message if an error exists in the
object for the specified .
The instance this method extends.
Expression name, relative to the current model.
An that contains the HTML attributes for the
() element. Alternatively, an
instance containing the HTML
attributes.
A new containing a element.
null if the is valid and client-side validation is disabled.
Method extracts an error string from the object. Message
will always be visible but client-side validation may update the associated CSS class.
Returns the validation message if an error exists in the
object for the specified .
The instance this method extends.
Expression name, relative to the current model.
The message to be displayed. If null or empty, method extracts an error string from the
object. Message will always be visible but client-side
validation may update the associated CSS class.
The tag to wrap the in the generated HTML. Its default value is
.
A new containing a element. null if the
is valid and client-side validation is disabled.
Returns the validation message if an error exists in the
object for the specified .
The instance this method extends.
Expression name, relative to the current model.
The message to be displayed. If null or empty, method extracts an error string from the
object. Message will always be visible but client-side
validation may update the associated CSS class.
An that contains the HTML attributes for the
() element. Alternatively, an
instance containing the HTML
attributes.
A new containing a element.
null if the is valid and client-side validation is disabled.
Returns the validation message if an error exists in the
object for the specified .
The instance this method extends.
An expression to be evaluated against the current model.
The type of the model.
The type of the result.
A new containing a element.
null if the is valid and client-side validation is disabled.
Method extracts an error string from the object. Message
will always be visible but client-side validation may update the associated CSS class.
Returns the validation message if an error exists in the
object for the specified .
The instance this method extends.
An expression to be evaluated against the current model.
The message to be displayed. If null or empty, method extracts an error string from the
object. Message will always be visible but client-side
validation may update the associated CSS class.
The type of the model.
The type of the result.
A new containing a element.
null if the is valid and client-side validation is disabled.
Returns the validation message if an error exists in the
object for the specified .
The instance this method extends.
An expression to be evaluated against the current model.
The message to be displayed. If null or empty, method extracts an error string from the
object. Message will always be visible but client-side
validation may update the associated CSS class.
An that contains the HTML attributes for the
() element. Alternatively, an
instance containing the HTML
attributes.
The type of the model.
The type of the result.
A new containing a element.
null if the is valid and client-side validation is disabled.
Returns the validation message if an error exists in the
object for the specified .
The instance this method extends.
An expression to be evaluated against the current model.
The message to be displayed. If null or empty, method extracts an error string from the
object. Message will always be visible but client-side
validation may update the associated CSS class.
The tag to wrap the in the generated HTML. Its default value is
.
The type of the model.
The type of the result.
A new containing the element. null if the
is valid and client-side validation is disabled.
Returns an unordered list (<ul> element) of validation messages that are in the
object.
The instance this method extends.
New containing a <div> element wrapping the <ul> element.
if the current model is valid and client-side validation is disabled).
Returns an unordered list (<ul> element) of validation messages that are in the
object.
The instance this method extends.
If true, display model-level errors only; otherwise display all errors.
New containing a <div> element wrapping the <ul> element.
if the current model is valid and client-side validation is disabled).
Returns an unordered list (<ul> element) of validation messages that are in the
object.
The instance this method extends.
The message to display with the validation summary.
New containing a <div> element wrapping the
element (which wraps the
) and the <ul> element. if the current model
is valid and client-side validation is disabled).
Returns an unordered list (<ul> element) of validation messages that are in the
object.
The instance this method extends.
The message to display with the validation summary.
The tag to wrap the in the generated HTML. Its default value is
.
New containing a <div> element wrapping the element
and the <ul> element. if the current model is valid and client-side
validation is disabled).
Returns an unordered list (<ul> element) of validation messages that are in the
object.
The instance this method extends.
If true, display model-level errors only; otherwise display all errors.
The message to display with the validation summary.
New containing a <div> element wrapping the
element (which, in turn, wraps the
) and the <ul> element. if the current model
is valid and client-side validation is disabled).
Returns an unordered list (<ul> element) of validation messages that are in the
object.
The instance this method extends.
The message to display with the validation summary.
An that contains the HTML attributes for the topmost (<div>) element.
Alternatively, an instance containing
the HTML attributes.
New containing a <div> element wrapping the
element (which wraps the
) and the <ul> element. if the current model
is valid and client-side validation is disabled).
Returns an unordered list (<ul> element) of validation messages that are in the
object.
The instance this method extends.
The message to display with the validation summary.
An that contains the HTML attributes for the topmost (<div>) element.
Alternatively, an instance containing
the HTML attributes.
The tag to wrap the in the generated HTML. Its default value is
.
New containing a <div> element wrapping the element
and the <ul> element. if the current model is valid and client-side
validation is disabled).
Returns an unordered list (<ul> element) of validation messages that are in the
object.
The instance this method extends.
If true, display model-level errors only; otherwise display all errors.
The message to display with the validation summary.
The tag to wrap the in the generated HTML. Its default value is
.
New containing a <div> element wrapping the element
and the <ul> element. if the current model is valid and client-side
validation is disabled).
Returns an unordered list (<ul> element) of validation messages that are in the
object.
The instance this method extends.
If true, display model-level errors only; otherwise display all errors.
The message to display with the validation summary.
An that contains the HTML attributes for the topmost (<div>) element.
Alternatively, an instance containing
the HTML attributes.
New containing a <div> element wrapping the
element (which wraps the
) and the <ul> element. if the current model
is valid and client-side validation is disabled).
Value-related extensions for and .
Returns the formatted value for the specified .
The instance this method extends.
Expression name, relative to the current model.
A containing the formatted value.
Converts the expression result to a directly.
Returns the formatted value for the specified .
The instance this method extends.
An expression to be evaluated against the current model.
The type of the model.
The type of the result.
A containing the formatted value.
Converts the result to a directly.
Returns the formatted value for the current model.
The instance this method extends.
A containing the formatted value.
Converts the model value to a directly.
Returns the formatted value for the current model.
The instance this method extends.
The composite format (see http://msdn.microsoft.com/en-us/library/txafckwd.aspx).
A containing the formatted value.
Converts the model value to a directly if
is null or empty.
Base HTML helpers.
Set this property to to have templated helpers such as
and render date and time values as RFC
3339 compliant strings. By default these helpers render dates and times using the current culture.
Gets the that replaces periods in the ID attribute of an element.
Gets the metadata provider. Intended for use in extension methods.
Gets the view bag.
Gets the context information about the view.
Gets the current view data.
Gets the current instance.
Gets the to be used for encoding a URL.
Returns an anchor (<a>) element that contains a URL path to the specified action.
The inner text of the anchor element. Must not be null.
The name of the action.
The name of the controller.
The protocol for the URL, such as "http" or "https".
The host name for the URL.
The URL fragment name (the anchor name).
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route parameters.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
A new containing the anchor element.
Returns a <hidden> element (antiforgery token) that will be validated when the containing
<form> is submitted.
containing the <hidden> element.
Renders a <form> start tag to the response. When the user submits the form, the action with name
will process the request.
The name of the action method.
The name of the controller.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route parameters.
The HTTP method for processing the form, either GET or POST.
If true, <form> elements will include an antiforgery token.
If false, suppresses the generation an <input> of type "hidden" with an antiforgery token.
If null, <form> elements will include an antiforgery token only if
is not .
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Renders a <form> start tag to the response. The route with name
generates the <form>'s action attribute value.
The name of the route.
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route parameters.
The HTTP method for processing the form, either GET or POST.
If true, <form> elements will include an antiforgery token.
If false, suppresses the generation an <input> of type "hidden" with an antiforgery token.
If null, <form> elements will include an antiforgery token only if
is not .
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
An instance which renders the </form> end tag when disposed.
In this context, "renders" means the method writes its output using .
Returns an <input> element of type "checkbox" with value "true" and an <input> element of type
"hidden" with value "false".
Expression name, relative to the current model.
If true, checkbox is initially checked.
An that contains the HTML attributes for the checkbox element. Alternatively, an
instance containing the HTML attributes.
A new containing the <input> elements.
Combines and to set checkbox
element's "name" attribute. Sanitizes to set checkbox element's "id"
attribute.
Determines checkbox element's "checked" attribute based on the following precedence:
-
entry for (converted to a fully-qualified
name) if entry exists and can be converted to a .
- if non-null.
-
entry for (converted to a fully-qualified name)
if entry exists and can be converted to a .
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property.
- Existing "checked" entry in if any.
- Otherwise, does not include a "checked" attribute.
In all but the and default cases, includes a "checked" attribute with
value "checked" if the values is true; does not include the attribute otherwise.
Returns HTML markup for the , using a display template, specified HTML field
name, and additional view data. The template is found using the or the
's .
Expression name, relative to the current model. May identify a single property or an
that contains the properties to display.
The name of the template used to create the HTML markup.
A used to disambiguate the names of HTML elements that are created for
properties that have the same name.
An anonymous or that can contain additional
view data that will be merged into the instance created for the
template.
A new containing the created HTML.
For example the default display template includes markup for each property in the
's value.
Example s include string.Empty which identifies the current model and
"prop" which identifies the current model's "prop" property.
Returns the display name for the specified .
Expression name, relative to the current model.
A containing the display name.
Returns the simple display text for the specified .
Expression name, relative to the current model.
A containing the simple display text.
If the expression result is null, returns .
Returns a single-selection HTML <select> element for the ,
using the specified list items, option label, and HTML attributes.
Expression name, relative to the current model.
A collection of objects used to populate the <select> element with
<optgroup> and <option> elements.
The text for a default empty item. Does not include such an item if argument is null.
An that contains the HTML attributes for the <select> element. Alternatively, an
instance containing the HTML attributes.
A new containing the <select> element.
Combines and to set
<select> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Returns HTML markup for the , using an editor template, specified HTML field
name, and additional view data. The template is found using the or the
's .
Expression name, relative to the current model. May identify a single property or an
that contains the properties to edit.
The name of the template used to create the HTML markup.
A used to disambiguate the names of HTML elements that are created for
properties that have the same name.
An anonymous or that can contain additional
view data that will be merged into the instance created for the
template.
A new containing the <input> element(s).
For example the default editor template includes <label> and <input>
elements for each property in the 's value.
Example s include string.Empty which identifies the current model and
"prop" which identifies the current model's "prop" property.
Converts the to an HTML-encoded .
The to encode.
The HTML-encoded .
Converts the specified to an HTML-encoded .
The to encode.
The HTML-encoded .
Renders the </form> end tag to the response.
In this context, "renders" means the method writes its output using .
Formats the value.
The value.
The composite format (see http://msdn.microsoft.com/en-us/library/txafckwd.aspx).
A containing the formatted value.
Converts to a directly if
is null or empty.
Returns an HTML element Id for the specified expression .
Fully-qualified expression name, ignoring the current model. Must not be null.
A containing the element Id.
Returns a select list for the given .
Type to generate a select list for.
An containing the select list for the given
.
Thrown if is not an or if it has a
.
Returns a select list for the given .
to generate a select list for.
An containing the select list for the given
.
Thrown if is not an or if it has a
.
Returns an <input> element of type "hidden" for the specified .
Expression name, relative to the current model.
If non-null, value to include in the element.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
A new containing the <input> element.
Combines and to set
<input> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Determines <input> element's "value" attribute based on the following precedence:
-
entry for (converted to a fully-qualified
name) if entry exists and can be converted to a .
- if non-null.
-
entry for (converted to a fully-qualified name)
if entry exists and can be converted to a .
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property.
- Existing "value" entry in if any.
- Otherwise, string.Empty.
Returns the HTML element Id for the specified .
Expression name, relative to the current model.
A containing the element Id.
Returns a <label> element for the specified .
Expression name, relative to the current model.
The inner text of the element.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
A new containing the <label> element.
Returns a multi-selection <select> element for the , using the
specified list items and HTML attributes.
Expression name, relative to the current model.
A collection of objects used to populate the <select> element with
<optgroup> and <option> elements.
An that contains the HTML attributes for the <select> element. Alternatively, an
instance containing the HTML attributes.
A new containing the <select> element.
Combines and to set
<select> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Returns the full HTML element name for the specified .
Expression name, relative to the current model.
A containing the element name.
Returns HTML markup for the specified partial view.
The name of the partial view used to create the HTML markup. Must not be null.
A model to pass into the partial view.
A to pass into the partial view.
A that on completion returns a new instance containing
the created HTML.
Returns an <input> element of type "password" for the specified .
Expression name, relative to the current model.
If non-null, value to include in the element.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
A new containing the <input> element.
Combines and to set
<input> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Determines <input> element's "value" attribute based on the following precedence:
- if non-null.
- Existing "value" entry in if any.
- Otherwise, string.Empty.
Returns an <input> element of type "radio" for the specified .
Expression name, relative to the current model.
If non-null, value to include in the element. Must not be null if
is also null and no "checked" entry exists in
.
If true, radio button is initially selected. Must not be null if
is also null and no "checked" entry exists in
.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
A new containing the <input> element.
Combines and to set
<input> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Determines element's "value" attribute based on the following precedence:
- if non-null.
- Existing "value" entry in if any.
- Otherwise, string.Empty.
Determines <input> element's "checked" attribute based on the following precedence:
-
entry for (converted to a fully-qualified
name) if entry exists and can be converted to a .
- if non-null.
- Existing "checked" entry in if any.
-
entry for (converted to a fully-qualified name)
if entry exists and can be converted to a .
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property.
- Otherwise, does not include a "checked" attribute.
In all but the and default cases, includes a "checked" attribute with
value "checked" if the values is equal to a converted for
or is true (for that case); does not include
the attribute otherwise.
Wraps HTML markup in an , without HTML-encoding the specified
.
HTML markup .
A new containing the wrapped .
Wraps HTML markup from the string representation of an in an
, without HTML-encoding the string representation.
The to wrap.
containing the wrapped string representation.
Renders HTML markup for the specified partial view.
The name of the partial view used to create the HTML markup. Must not be null.
A model to pass into the partial view.
A to pass into the partial view.
A that renders the created HTML when it executes.
In this context, "renders" means the method writes its output using .
Returns an anchor (<a>) element that contains a URL path to the specified route.
The inner text of the anchor element. Must not be null.
The name of the route.
The protocol for the URL, such as "http" or "https".
The host name for the URL.
The URL fragment name (the anchor name).
An that contains the parameters for a route. The parameters are retrieved through
reflection by examining the properties of the . This is typically
created using initializer syntax. Alternatively, an
instance containing the route parameters.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
A new containing the anchor element.
Returns a <textarea> element for the specified .
Expression name, relative to the current model.
If non-null, value to include in the element.
Number of rows in the textarea.
Number of columns in the textarea.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
A new containing the <textarea> element.
Combines and to set
<textarea> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Determines <textarea> element's content based on the following precedence:
-
entry for (converted to a fully-qualified
name) if entry exists and can be converted to a .
- if non-null.
-
entry for (converted to a fully-qualified name)
if entry exists and can be converted to a .
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property.
- Otherwise, string.Empty.
Returns an <input> element of type "text" for the specified .
Expression name, relative to the current model.
If non-null, value to include in the element.
The composite format (see http://msdn.microsoft.com/en-us/library/txafckwd.aspx).
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
A new containing the <input> element.
Combines and to set
<input> element's "name" attribute. Sanitizes to set element's "id"
attribute.
Determines <input> element's "value" attribute based on the following precedence:
-
entry for (converted to a fully-qualified
name) if entry exists and can be converted to a .
-
if non-null. Formats using
or converts to a directly if
is null or empty.
-
entry for (converted to a fully-qualified name) if entry
exists and can be converted to a . Formats entry using or
converts entry to a directly if is null or empty.
-
Linq expression based on (converted to a fully-qualified name) run against
current model if result is non-null and can be converted to a . For example
string.Empty identifies the current model and "prop" identifies the current model's "prop"
property. Formats result using or converts result to a
directly if is null or empty.
- Existing "value" entry in if any.
- Otherwise, string.Empty.
Returns the validation message if an error exists in the object
for the specified .
Expression name, relative to the current model.
The message to be displayed. If null or empty, method extracts an error string from the
object. Message will always be visible but client-side validation may
update the associated CSS class.
An that contains the HTML attributes for the element.
Alternatively, an instance containing the HTML attributes.
The tag to wrap the in the generated HTML. Its default value is
.
A new containing a element. null if the
is valid and client-side validation is disabled.
Returns an unordered list (<ul> element) of validation messages that are in the
object.
If true, display model-level errors only; otherwise display all errors.
The message to display with the validation summary.
An that contains the HTML attributes for the topmost (<div>) element.
Alternatively, an instance containing the HTML attributes.
The tag to wrap the in the generated HTML. Its default value is
.
New containing a <div> element wrapping the element
and the <ul> element. if the current model is valid and client-side
validation is disabled).
Returns the formatted value for the specified .
Expression name, relative to the current model.
The composite format (see http://msdn.microsoft.com/en-us/library/txafckwd.aspx).
A containing the formatted value.
Converts the expression result to a directly if
is null or empty.
An for Linq expressions.
The type of the model.
Gets the current view data.
Returns an <input> element of type "checkbox" with value "true" and an <input> element of type
"hidden" with value "false".
An expression to be evaluated against the current model.
An that contains the HTML attributes for the checkbox element. Alternatively, an
instance containing the HTML attributes.
A new containing the <input> elements.
Combines and the string representation of the
to set checkbox element's "name" attribute. Sanitizes the string
representation of the to set checkbox element's "id" attribute.
Determines checkbox element's "checked" attribute based on the following precedence:
-
entry for the string representation of the
if entry exists and can be converted to a .
-
result if it is non-null and can be parsed as a
.
- Existing "checked" entry in if any.
- Otherwise, does not include a "checked" attribute.
In all but the case, includes a "checked" attribute with value "checked"
if the values is true; does not include the attribute otherwise.
Returns HTML markup for the , using a display template, specified HTML field
name, and additional view data. The template is found using the or the
's .
An expression to be evaluated against the current model.
The name of the template used to create the HTML markup.
A used to disambiguate the names of HTML elements that are created for properties
that have the same name.
An anonymous or that can contain additional
view data that will be merged into the instance created for the
template.
The type of the result.
A new containing the created HTML.
For example the default display template includes markup for each property in the
result.
Returns the display name for the specified .
An expression to be evaluated against the current model.
The type of the result.
A containing the display name.
Returns the display name for the specified
if the current model represents a collection.
An expression to be evaluated against an item in the current model.
The type of items in the model collection.
The type of the result.
A containing the display name.
Returns the simple display text for the specified .
An expression to be evaluated against the current model.
The type of the result.
A containing the simple display text.
If the result is null, returns
.
Returns a single-selection HTML <select> element for the , using the
specified list items, option label, and HTML attributes.
An expression to be evaluated against the current model.
A collection of objects used to populate the <select> element with
<optgroup> and <option> elements.
The text for a default empty item. Does not include such an item if argument is null.
An that contains the HTML attributes for the <select> element. Alternatively, an
instance containing the HTML attributes.
The type of the result.
A new containing the <select> element.
Combines and the string representation of the
to set <select> element's "name" attribute. Sanitizes the string
representation of the to set element's "id" attribute.
Returns HTML markup for the , using an editor template, specified HTML field
name, and additional view data. The template is found using the or the
's .
An expression to be evaluated against the current model.
The name of the template that is used to create the HTML markup.
A used to disambiguate the names of HTML elements that are created for properties
that have the same name.
An anonymous or that can contain additional
view data that will be merged into the instance created for the
template.
The type of the result.
A new containing the <input> element(s).
For example the default editor template includes <label> and <input>
elements for each property in the result.
Returns an <input> element of type "hidden" for the specified .
An expression to be evaluated against the current model.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
The type of the result.
A new containing the <input> element.
Combines and the string representation of the
to set <input> element's "name" attribute. Sanitizes the string
representation of the to set element's "id" attribute.
Determines <input> element's "value" attribute based on the following precedence:
-
entry for the string representation of the
if entry exists and can be converted to a .
-
result if it is non-null and can be parsed as a
.
- Existing "value" entry in if any.
- Otherwise, string.Empty.
Returns the HTML element Id for the specified .
An expression to be evaluated against the current model.
The type of the result.
A containing the element Id.
Returns a <label> element for the specified .
An expression to be evaluated against the current model.
The inner text of the element.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
The type of the result.
A new containing the <label> element.
Returns a multi-selection <select> element for the , using the
specified list items and HTML attributes.
An expression to be evaluated against the current model.
A collection of objects used to populate the <select> element with
<optgroup> and <option> elements.
An that contains the HTML attributes for the <select> element. Alternatively, an
instance containing the HTML attributes.
The type of the result.
A new containing the <select> element.
Combines and the string representation of the
to set <select> element's "name" attribute. Sanitizes the string
representation of the to set element's "id" attribute.
Returns the full HTML element name for the specified .
An expression to be evaluated against the current model.
The type of the result.
A containing the element name.
Returns an <input> element of type "password" for the specified .
An expression to be evaluated against the current model.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
The type of the result.
A new containing the <input> element.
Combines and the string representation of the
to set <input> element's "name" attribute. Sanitizes the string
representation of the to set element's "id" attribute.
Determines <input> element's "value" attribute based on the following precedence:
-
result if it is non-null and can be parsed as a
.
- Existing "value" entry in if any.
- Otherwise, string.Empty.
Returns an <input> element of type "radio" for the specified .
An expression to be evaluated against the current model.
Value to include in the element. Must not be null.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
The type of the result.
A new containing the <input> element.
Combines and the string representation of the
to set <select> element's "name" attribute. Sanitizes the string
representation of the to set element's "id" attribute. Converts the
to a to set element's "value" attribute.
Determines <input> element's "checked" attribute based on the following precedence:
-
entry for the string representation of the
if entry exists and can be converted to a .
-
result if it is non-null and can be parsed as a .
- Existing "checked" entry in if any.
- Otherwise, does not include a "checked" attribute.
In all but the and default cases, includes a "checked" attribute with
value "checked" if the values is equal to a converted for
; does not include the attribute otherwise.
Returns a <textarea> element for the specified .
An expression to be evaluated against the current model.
Number of rows in the textarea.
Number of columns in the textarea.
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
The type of the result.
A new containing the <textarea> element.
Combines and the string representation of the
to set <textarea> element's "name" attribute. Sanitizes the string
representation of the to set element's "id" attribute.
Determines <textarea> element's content based on the following precedence:
-
entry for the string representation of the
if entry exists and can be converted to a .
-
result if it is non-null and can be parsed as a .
- Otherwise, string.Empty.
Returns an <input> element of type "text" for the specified .
An expression to be evaluated against the current model.
The composite format (see http://msdn.microsoft.com/en-us/library/txafckwd.aspx).
An that contains the HTML attributes for the element. Alternatively, an
instance containing the HTML attributes.
The type of the result.
A new containing the <input> element.
Combines and the string representation of the
to set <input> element's "name" attribute. Sanitizes the string
representation of the to set element's "id" attribute.
Determines <input> element's "value" attribute based on the following precedence:
-
entry for the string representation of the
if entry exists and can be converted to a .
-
result if it is non-null and can be parsed as a .
Formats result using or converts result to a directly if
is null or empty.
- Existing "value" entry in if any.
- Otherwise, string.Empty.
Returns the validation message if an error exists in the
object for the specified .
An expression to be evaluated against the current model.
The message to be displayed. If null or empty, method extracts an error string from the
object. Message will always be visible but client-side
validation may update the associated CSS class.
An that contains the HTML attributes for the element.
Alternatively, an instance containing the HTML attributes.
The tag to wrap the in the generated HTML. Its default value is
.
The type of the result.
A new containing the element. null if the
is valid and client-side validation is disabled.
Returns the formatted value for the specified .
An expression to be evaluated against the current model.
The composite format (see http://msdn.microsoft.com/en-us/library/txafckwd.aspx).
The type of the result.
A containing the formatted value.
Converts the result to a directly if
is null or empty.
Base JSON helpers.
Returns serialized JSON for the .
The value to serialize as JSON.
A new containing the serialized JSON.
Returns serialized JSON for the .
The value to serialize as JSON.
The to be used by the serializer.
A new containing the serialized JSON.
Represents a list that lets users select multiple items.
This class is typically rendered as an HTML <select multiple="multiple"> element with the specified collection
of objects.
Initializes a new instance of the MultiSelectList class by using the items to include in the list,
the data value field, the data text field, the selected values, and the data group field.
The items used to build each of the list.
The data value field. Used to match the Value property of the corresponding
.
The data text field. Used to match the Text property of the corresponding
.
The selected values field. Used to match the Selected property of the
corresponding .
The data group field. Used to match the Group property of the corresponding
.
Gets or sets the data group field.
An HTML form element in an MVC view.
Initializes a new instance of .
The .
The .
Renders the </form> end tag to the response.
Renders and
the </form>.
Represents a list that lets users select a single item.
This class is typically rendered as an HTML <select> element with the specified collection
of objects.
Initializes a new instance of the SelectList class by using the specified items for the list,
the data value field, the data text field, a selected value, and the data group field.
The items used to build each of the list.
The data value field. Used to match the Value property of the corresponding
.
The data text field. Used to match the Text property of the corresponding
.
The selected values. Used to match the Selected property of the corresponding
.
The data group field. Used to match the Group property of the corresponding
.
Represents the optgroup HTML element and its attributes.
In a select list, multiple groups with the same name are supported.
They are compared with reference equality.
Gets or sets a value that indicates whether this is disabled.
Represents the value of the optgroup's label.
Represents an item in a or .
This class is typically rendered as an HTML <option> element with the specified
attribute values.
Gets or sets a value that indicates whether this is disabled.
This property is typically rendered as a disabled="disabled" attribute in the HTML
<option> element.
Represents the optgroup HTML element this item is wrapped into.
In a select list, multiple groups with the same name are supported.
They are compared with reference equality.
Gets or sets a value that indicates whether this is selected.
This property is typically rendered as a selected="selected" attribute in the HTML
<option> element.
Gets or sets a value that indicates the display text of this .
This property is typically rendered as the inner HTML in the HTML <option> element.
Gets or sets a value that indicates the value of this .
This property is typically rendered as a value="..." attribute in the HTML
<option> element.
Contains methods and properties that are used to create HTML elements. This class is often used to write HTML
helpers and tag helpers.
Creates a new HTML tag that has the specified tag name.
An HTML tag name.
Gets the set of attributes that will be written to the tag.
Gets the inner HTML content of the element.
Gets the tag name for this tag.
The with which the tag is written.
Defaults to .
Adds a CSS class to the list of CSS classes in the tag.
If there are already CSS classes on the tag then a space character and the new class will be appended to
the existing list.
The CSS class name to add.
Return valid HTML 4.01 "id" attribute for an element with the given .
The original element name.
The (normally a single ) to substitute for invalid characters in
.
Valid HTML 4.01 "id" attribute for an element with the given .
Valid "id" attributes are defined in http://www.w3.org/TR/html401/types.html#type-id
Generates a sanitized ID attribute for the tag by using the specified name.
The name to use to generate an ID attribute.
The (normally a single ) to substitute for invalid characters in
.
Extension methods for .
Invokes a view component with the specified .
The .
The name of the view component.
A that on completion returns the rendered .
Invokes a view component of type .
The .
The view component .
A that on completion returns the rendered .
Invokes a view component of type .
The .
Arguments to be passed to the invoked view component method.
The of the view component.
A that on completion returns the rendered .
Invokes a view component of type .
The .
The of the view component.
A that on completion returns the rendered .
Context for view execution.
Creates an empty .
The default constructor is provided for unit test purposes only.
Initializes a new instance of .
The .
The being rendered.
The .
The .
The to render output to.
The to apply to this instance.
Initializes a new instance of .
The to copy values from.
The being rendered.
The .
The to render output to.
Gets or sets the for the form element being rendered.
A default context is returned if no form is currently being rendered.
Gets or sets a value that indicates whether client-side validation is enabled.
Set this property to to have templated helpers such as
and render date and time
values as RFC 3339 compliant strings. By default these helpers render dates and times using the current
culture.
Element name used to wrap a top-level message generated by and
other overloads.
Element name used to wrap a top-level message generated by and
other overloads.
Gets the dynamic view bag.
Gets or sets the currently being rendered, if any.
Gets or sets the .
Gets or sets the instance.
Gets or sets the used to write the output.
Gets or sets the path of the view file currently being rendered.
The rendering of a view may involve one or more files (e.g. _ViewStart, Layouts etc).
This property contains the path of the file currently being rendered.
An which writes text when executed.
The provided content will be HTML-encoded when written. To write pre-encoded content, use an
.
Initializes a new .
Content to write. The content will be HTML encoded when written.
Gets the content.
Encodes and writes the .
The .
Encodes and writes the .
The .
A completed .
A default implementation of .
The can provide the current instance of
to a public property of a view component marked
with .
Initializes a new instance of class.
The used to create new view component instances.
A default implementation of
Creates a new instance of .
The .
Default implementation of .
Creates a new .
The .
Gets the candidate instances provided by the .
A list of instances.
Default implementation for .
Creates a new instance of
The used to create new view component instances.
Default implementation for .
Initializes a new instance of .
The
used to locate view components.
The .
The .
The .
The that manages the lifetime of
instances.
Default implementation for .
Initializes a new instance of .
The .
The .
The .
The .
Default implementation of .
Creates a new .
The .
An which writes an when executed.
The provided content will be HTML-encoded as specified when the content was created. To encoded and write
text, use a .
Initializes a new .
Gets the encoded content.
Writes the .
The .
Writes the .
The .
A completed .
Provides methods to instantiate and release a ViewComponent.
Instantiates a ViewComponent.
The for the executing .
Releases a ViewComponent instance.
The associated with the .
The to release.
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 view components 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 .
Discovers the view components in the application.
Gets the set of .
A list of .
Provides methods for creation and disposal of view components.
Creates a new controller for the specified .
for the view component.
The view component.
Releases a view component instance.
The context associated with the .
The view component.
Specifies the contract for execution of a view component.
Executes the view component specified by
of and writes the result to .
The .
A that represents the asynchronous operation of execution.
Selects a view component based on a view component name.
Selects a view component based on .
The view component name.
A , or null if no match is found.
A that retrieves view components as services from the request's
.
A context for view components.
Creates a new .
The default constructor is provided for unit test purposes only.
Creates a new .
The for the view component being invoked.
The view component arguments.
The to use.
The .
The for writing output.
Gets or sets the view component arguments.
The property setter is provided for unit test purposes only.
Gets or sets the .
The property setter is provided for unit test purposes only.
Gets or sets the for the view component being invoked.
The property setter is provided for unit test purposes only.
Gets or sets the .
The property setter is provided for unit test purposes only.
Gets the .
This is an alias for ViewContext.ViewData.
Gets the for output.
This is an alias for ViewContext.Writer.
Specifies that a controller property should be set with the current
when creating the view component. The property must have a public
set method.
A descriptor for a view component.
Creates a new .
Gets or sets the display name of the view component.
Gets or sets the full name.
The full name is defaulted to the full namespace of the view component class, prepended to
the the class name with a '.' character as the separator. If the view component class uses
ViewComponent as a suffix, the suffix will be omitted from the .
Class Name: Contoso.Products.LoginViewComponent
View Component FullName: Contoso.Products.Login
Class Name: Contoso.Blog.Tags
View Component FullName: Contoso.Blog.Tags
If is used to set a name, then this will be used as
the .
[ViewComponent(Name = "Contoso.Forum.UsersOnline")]
public class OnlineUsersViewComponent
{
}
View Component FullName: Contoso.Forum.UsersOnline
Gets or set the generated unique identifier for this .
Gets or sets the short name.
The short name is defaulted to the name of the view component class. If the view component class uses
ViewComponent as a suffix, the suffix will be omitted from the .
Class Name: Contoso.Products.LoginViewComponent
View Component ShortName: Login
Class Name: Contoso.Blog.Tags
View Component ShortName: Tags
If is used to set a name, then the last segment of the
value (using '.' as a separate) will be used as the .
[ViewComponent(Name = "Contoso.Forum.UsersOnline")]
public class OnlineUsersViewComponent
{
}
View Component ShortName: UsersOnline
Gets or sets the .
Gets or sets the to invoke.
A cached collection of .
Initializes a new instance of the .
The result of view component discovery
The unique version of discovered view components.
Returns the cached .
Returns the unique version of the currently cached items.
The list of view component 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 view component types in an MVC application.
Discovers view components from a list of instances.
A that renders a partial view when executed.
Gets or sets the view name.
Gets or sets the .
Gets or sets the instance.
Gets or sets the .
Locates and renders a view specified by . If is null,
then the view name searched for is"Default".
The for the current component execution.
This method synchronously calls and blocks on .
Locates and renders a view specified by . If is null,
then the view name searched for is"Default".
The for the current component execution.
A which will complete when view rendering is completed.
Initializes a new instance of .
The options accessor for .
Represents an that delegates to one of a collection of view engines.
Gets the list of this instance of delegates
to.
Specifies the contract for a view.
Gets the path of the view as resolved by the .
Asynchronously renders the view using the specified .
The .
A that on completion renders the view.
Defines the contract for a view engine.
Finds the view with the given using view locations and information from the
.
The .
The name of the view.
Determines if the page being found is the main page for an action.
The of locating the view.
Gets the view with the given , relative to
unless is already absolute.
The absolute path to the currently-executing view, if any.
The path to the view.
Determines if the page being found is the main page for an action.
The of locating the view.
Ensure this was successful.
Additional to include in the thrown
if is false.
Thrown if is false.
This if is true.