Microsoft.AspNetCore.Mvc.Razor 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 . Configures a set of for the application. The . An action to configure the . The . Registers tag helpers as services and replaces the existing with an . The instance this method extends. The instance this method extends. Adds an initialization callback for a given . The callback will be invoked on any instance before the method is called. The type of being initialized. The instance this method extends. An action to initialize the . The instance this method extends. Registers discovered tag helpers as services and changes the existing for an . The instance this method extends. The instance this method extends. Adds an initialization callback for a given . The callback will be invoked on any instance before the method is called. The type of being initialized. The instance this method extends. An action to initialize the . The instance this method extends. Represents a deferred write operation in a . Creates a new instance of . The asynchronous delegate to invoke when is called. Calls to result in a blocking invocation of . Gets the asynchronous delegate to invoke when is called. Method invoked to produce content from the . The instance to write to. The to encode the content. Represents properties and methods that are used by for execution. Gets or sets the view context of the renderign view. Gets or sets the body content. Gets or sets a flag that determines if the layout of this page is being rendered. Sections defined in a page are deferred and executed as part of the layout page. When this flag is set, all write operations performed by the page are part of a section being rendered. Gets the application base relative path to the page. Gets or sets the path of a layout page. Gets or sets the sections that can be rendered by this page. Gets the sections that are defined by this page. Renders the page and writes the output to the . A task representing the result of executing the page. Verifies that all sections defined in were rendered, or the body was rendered if no sections were defined. if one or more sections were not rendered or if no sections were defined and the body was not rendered. Provides methods to activate properties on a instance. When implemented in a type, activates an instantiated page. The page to activate. The for the executing view. Defines methods that are used for creating instances at a given path. Creates a factory for the specified path. The path to locate the page. The instance. An used to render pages that use the Razor syntax. Finds the page with the given using view locations and information from the . The . The name of the page. The of locating the page. . Gets the page with the given , relative to unless is already absolute. The absolute path to the currently-executing page, if any. The path to the page. The of locating the page. . Converts the given to be absolute, relative to unless is already absolute. The absolute path to the currently-executing page, if any. The path to the page. The combination of and if is a relative path. The value (unchanged) otherwise. Provides methods to create a tag helper. Creates an . The type. The for the executing view. The tag helper. Provides methods to create and initialize tag helpers. Creates a new tag helper for the specified . for the executing view. The tag helper. Initializes an before it's executed. The type. Initializes the . The to initialize. The for the executing view. Specifies the contracts for a view location expander that is used by instances to determine search paths for a view. Individual s are invoked in two steps: (1) is invoked and each expander adds values that it would later consume as part of . The populated values are used to determine a cache key - if all values are identical to the last time was invoked, the cached result is used as the view location. (2) If no result was found in the cache or if a view was not found at the cached location, is invoked to determine all potential paths for a view. Invoked by a to determine the values that would be consumed by this instance of . The calculated values are used to determine if the view location has changed since the last time it was located. The for the current view location expansion operation. Invoked by a to determine potential locations for a view. The for the current view location expansion operation. The sequence of view locations to expand. A list of expanded view locations. A that adds the language as an extension prefix to view names. Language that is getting added as extension prefix comes from . For the default case with no areas, views are generated with the following patterns (assuming controller is "Home", action is "Index" and language is "en") Views/Home/en/Action Views/Home/Action Views/Shared/en/Action Views/Shared/Action Instantiates a new instance. Instantiates a new instance. The . Specifies the localized view format for . Locale is a subfolder under which the view exists. Home/Views/en-US/Index.chtml Locale is part of the view name as a suffix. Home/Views/Index.en-US.chtml Represents properties and methods that are needed in order to render a view that uses Razor syntax. An representing the current request execution. Gets the to use when this handles non- C# expressions. Gets or sets a instance used to instrument the page execution. Gets the that the page is writing output to. Gets the of the current logged in user. Gets the dynamic view data dictionary. Gets the from the . Returns null if is null. Format an error message about using an indexer when the tag helper property is null. Name of the HTML attribute associated with the indexer. Full name of the tag helper . Dictionary property in the tag helper. An error message about using an indexer when the tag helper property is null. Creates and activates a . A type. The activated . must have a parameterless constructor. Starts a new writing scope and optionally overrides within that scope. The to use when this handles non- C# expressions. If null, does not change . All writes to the or after calling this method will be buffered until is called. Ends the current writing scope that was started by calling . The buffered . Starts a new scope for writing attribute values. All writes to the or after calling this method will be buffered until is called. The content will be buffered using a shared within this Nesting of and method calls is not supported. Ends the current writing scope that was started by calling . The content buffered by the shared of this . This method assumes that there will be no nesting of and method calls. Writes the specified with HTML encoding to . The to write. Writes the specified with HTML encoding to . The instance to write to. The to write. s of type are written using . For all other types, the encoded result of is written to the . Writes the specified with HTML encoding to given . The instance to write to. The to use when encoding . The to write. s of type are written using . For all other types, the encoded result of is written to the . Writes the specified with HTML encoding to . The instance to write to. The to write. Writes the specified without HTML encoding to . The to write. Writes the specified without HTML encoding to the . The instance to write to. The to write. Writes the specified without HTML encoding to . The instance to write to. The to write. In a Razor layout page, renders the portion of a content page that is not within a named section. The HTML content to render. In a Razor layout page, ignores rendering the portion of a content page that is not within a named section. Creates a named content section in the page that can be invoked in a Layout page using or . The name of the section to create. The to execute when rendering the section. Returns a value that indicates whether the specified section is defined in the content page. The section name to search for. true if the specified section is defined in the content page; otherwise, false. In layout pages, renders the content of the section named . The name of the section to render. Returns to allow the call to succeed. The method writes to the and the value returned is a token value that allows the Write (produced due to @RenderSection(..)) to succeed. However the value does not represent the rendered content. In layout pages, renders the content of the section named . The section to render. Indicates if this section must be rendered. Returns to allow the call to succeed. The method writes to the and the value returned is a token value that allows the Write (produced due to @RenderSection(..)) to succeed. However the value does not represent the rendered content. In layout pages, asynchronously renders the content of the section named . The section to render. A that on completion returns that allows the call to succeed. The method writes to the and the value returned is a token value that allows the Write (produced due to @RenderSection(..)) to succeed. However the value does not represent the rendered content. In layout pages, asynchronously renders the content of the section named . The section to render. Indicates the section must be registered (using @section) in the page. A that on completion returns that allows the call to succeed. The method writes to the and the value returned is a token value that allows the Write (produced due to @RenderSection(..)) to succeed. However the value does not represent the rendered content. if is true and the section was not registered using the @section in the Razor page. In layout pages, ignores rendering the content of the section named . The section to ignore. Invokes on and on the response stream, writing out any buffered content to the . A that represents the asynchronous flush operation and on completion returns . The value returned is a token value that allows FlushAsync to work directly in an HTML section. However the value does not represent the rendered content. This method also writes out headers, so any modifications to headers must be done before is called. For example, call to send antiforgery cookie token and X-Frame-Options header to client before this method flushes headers out. Sets antiforgery cookie and X-Frame-Options header on the response. . Call this method to send antiforgery cookie token and X-Frame-Options header to client before flushes the headers. Initializes a new instance of the class. Result of . Initializes a new instance of with the specified . One or more instances. Initializes a new instance of with the specified factory. The factory. One or more instances. The factory. This property is null when is false. One or more s associated with this instance of . Gets a value that determines if the page was successfully located. Represents the properties and methods that are needed in order to render a view that uses Razor syntax. The type of the view data model. Gets the Model property of the property. Gets or sets the dictionary for view data. Result of locating a . Initializes a new instance of for a successful discovery. The name of the page that was found. The located . Initializes a new instance of for an unsuccessful discovery. The name of the page that was not found. The locations that were searched. Gets the name or the path of the page being located. Gets the if found. This property is null if the page was not found. Gets the locations that were searched when could not be found. This property is null if the page was found. Default implementation for that executes one or more as parts of its execution. Initializes a new instance of The used to locate Layout pages. The used to activate pages. The sequence of instances executed as _ViewStarts. The instance to execute. The HTML encoder. Gets instance that the views executes on. Gets the sequence of _ViewStart instances that are executed by this view. Default implementation of . For ViewResults returned from controllers, views should be located in by default. For the controllers in an area, views should exist in . Initializes a new instance of the . A cache for results of view lookups. Gets the case-normalized route value for the specified route . The . The route key to lookup. The value corresponding to the key. The casing of a route value in is determined by the client. This making constructing paths for view locations in a case sensitive file system unreliable. Using the to get route values produces consistently cased results. Provides programmatic configuration for the . Gets a used by the . Gets the sequence of instances used by to locate Razor files. At startup, this is initialized to include an instance of that is rooted at the application root. Gets the locations where will search for views. The locations of the views returned from controllers that do not belong to an area. Locations are composite format strings (see http://msdn.microsoft.com/en-us/library/txafckwd.aspx), which may contain the following format items: {0} - Action Name {1} - Controller Name The values for these locations are case-sensitive on case-sensitive file systems. For example, the view for the Test action of HomeController should be located at /Views/Home/Test.cshtml. Locations such as /views/home/test.cshtml would not be discovered. Gets the locations where will search for views within an area. The locations of the views returned from controllers that belong to an area. Locations are composite format strings (see http://msdn.microsoft.com/en-us/library/txafckwd.aspx), which may contain the following format items: {0} - Action Name {1} - Controller Name {2} - Area Name The values for these locations are case-sensitive on case-sensitive file systems. For example, the view for the Test action of HomeController under Admin area should be located at /Areas/Admin/Views/Home/Test.cshtml. Locations such as /areas/admin/views/home/test.cshtml would not be discovered. Gets the instances that should be included in Razor compilation, along with those discovered by s. Gets or sets the callback that is used to customize Razor compilation to change compilation settings you can update property. Customizations made here would not reflect in tooling (Intellisense). Gets or sets the options used by Razor view compilation. Gets or sets the used by Razor view compilation. Creates a . The initialization delegate. A context for containing information for . Initializes a new instance of . The for the current executing action. The view name. The controller name. The area name. Determines if the page being found is the main page for an action. Gets the for the current executing action. Gets the view name. Gets the controller name. Gets the area name. Determines if the page being found is the main page for an action. Gets or sets the that is populated with values as part of . An thrown when accessing the result of a failed compilation. Instantiates a new instance of . s containing details of the compilation failure. Represents the result of compilation. Initializes a new instance of for a successful compilation. The compiled type. Initializes a new instance of for a failed compilation. s produced from parsing or compiling the Razor file. Gets the type produced as a result of compilation. This property is null when compilation failed. Gets the s produced from parsing or compiling the Razor file. This property is null when compilation succeeded. An empty sequence indicates a failed compilation. Gets the . The current instance. Thrown if compilation failed. Provides methods for compilation of a Razor page. Compiles content and returns the result of compilation. The for the Razor file that was compiled. The generated C# content to be compiled. A representing the result of compilation. Specifies the contracts for a service that compiles Razor files. Compiles the razor file located at . A instance that represents the file to compile. A that represents the results of parsing and compiling the file. Specifies the list of used in Razor compilation. Gets the instances. An for that uses for registered instances to create . A container type that represents along with the application base relative path for a file in the file system. Initializes a new instance of . for the file. Path of the file relative to the application base. Gets the associated with this instance of . Gets the path of the file relative to the application base. Context object used to pass information about the current Razor page compilation. Constructs a new instance of the type. to be set to property. Gets or sets the used for current source file compilation. Caches the result of runtime compilation of Razor files for the duration of the application lifetime. Initializes a new instance of . used to locate Razor views. Initializes a new instance of populated with precompiled views specified by . used to locate Razor views. A mapping of application relative paths of view to the precompiled view s. Result of . Initializes a new instance of with the specified . Path of the view file relative to the application base. The . Initializes a new instance of with the specified . Path of the view file relative to the application base. The . One or more instances that indicate when this result has expired. Initializes a new instance of for a file that could not be found in the file system. One or more instances that indicate when this result has expired. instances that indicate when this result has expired. Gets a value that determines if the view was successfully found and compiled. Gets a delegate that creates an instance of the . Default implementation for . Initializes a new instance of . The . Represents a that creates instances from razor files in the file system. This delegate holds on to an instance of . Initializes a new instance of . The . The . Default implementation of . Initializes a new instance of . Accessor to . Gets the used to look up Razor files. A type that uses Roslyn to compile C# content. Initalizes a new instance of the class. The . Accessor to . The . The . Gets the sequence of instances used for compilation. The instances. Default implementation of . Instantiates a new instance. The . Default implementation for . Initializes a new instance. The used to create tag helper instances. Sets up compilation and parse option default options for using Initializes a new instance of . An expression rewriter which can hoist a simple expression lambda into a private field. Caches the result of runtime compilation of Razor files for the duration of the app lifetime. Get an existing compilation result, or create and add a new one if it is not available in the cache or is expired. Application relative path to the file. An delegate that will generate a compilation result. A cached . Provides access to a cached instance. The cached instance. Accessor to the used by . Gets the used to look up Razor files. Configures to use . Initializes a new instance of . The . Configures to use . The . The to configure. Default implementation of . Instantiates a new instance of the class. The to compile generated code. The to generate code from Razor files. The . The . Generate code for the Razor file at with content . The path of the Razor file relative to the root of the application. Used to generate line pragmas and calculate the class name of the generated type. A that contains the Razor content. A instance containing results of code generation. A that retrieves tag helpers as services from the request's . Utility type for determining if a platform supports full pdb file generation. Determines if the current platform supports full pdb generation. true if full pdb generation is supported; false otherwise. An item in . Initializes a new instance of . The factory. The application relative path of the . Gets the application relative path of the Gets the factory. Key for entries in . Initializes a new instance of . The view name or path. Determines if the page being found is the main page for an action. Initializes a new instance of . The view name. The controller name. The area name. Determines if the page being found is the main page for an action. Values from instances. Gets the view name. Gets the controller name. Gets the area name. Determines if the page being found is the main page for an action. Gets the values populated by instances. Result of view location cache lookup. Initializes a new instance of for a view that was successfully found at the specified location. The for the found view. s for applicable _ViewStarts. Initializes a new instance of for a failed view lookup. Locations that were searched. for the located view. null if is false. s for applicable _ViewStarts. null if is false. The sequence of locations that were searched. When is true this includes all paths that were search prior to finding a view at . When is false, this includes all search paths. Gets a value that indicates whether the view was successfully found. Value cannot be null or empty. Value cannot be null or empty. One or more compilation failures occurred: One or more compilation failures occurred: '{0}' cannot be invoked when a Layout page is set to be executed. '{0}' cannot be invoked when a Layout page is set to be executed. The {0} returned by '{1}' must be an instance of '{2}'. The {0} returned by '{1}' must be an instance of '{2}'. The layout view '{0}' could not be located. The following locations were searched:{1} The layout view '{0}' could not be located. The following locations were searched:{1} Layout page '{0}' cannot be rendered after '{1}' has been invoked. Layout page '{0}' cannot be rendered after '{1}' has been invoked. The 'inherits' keyword is not allowed when a '{0}' keyword is used. The 'inherits' keyword is not allowed when a '{0}' keyword is used. The '{0}' keyword must be followed by a type name on the same line. The '{0}' keyword must be followed by a type name on the same line. Only one '{0}' statement is allowed in a file. Only one '{0}' statement is allowed in a file. There is no active writing scope to end. There is no active writing scope to end. The {0} operation cannot be performed while inside a writing scope in '{1}'. The {0} operation cannot be performed while inside a writing scope in '{1}'. {0} invocation in '{1}' is invalid. {0} can only be called from a layout page. {0} invocation in '{1}' is invalid. {0} can only be called from a layout page. {0} has not been called for the page at '{1}'. To ignore call {2}(). {0} has not been called for the page at '{1}'. To ignore call {2}(). Section '{0}' is already defined. Section '{0}' is already defined. {0} invocation in '{1}' is invalid. The section '{2}' has already been rendered. {0} invocation in '{1}' is invalid. The section '{2}' has already been rendered. The layout page '{0}' cannot find the section '{1}' in the content page '{2}'. The layout page '{0}' cannot find the section '{1}' in the content page '{2}'. The following sections have been defined but have not been rendered by the page at '{0}': '{1}'. To ignore an unrendered section call {2}("sectionName"). The following sections have been defined but have not been rendered by the page at '{0}': '{1}'. To ignore an unrendered section call {2}("sectionName"). View of type '{0}' cannot be activated by '{1}'. View of type '{0}' cannot be activated by '{1}'. '{0} must be set to access '{1}'. '{0} must be set to access '{1}'. '{0}' must be a {1} that is generated as result of the call to '{2}'. '{0}' must be a {1} that is generated as result of the call to '{2}'. The '{0}' method must be called before '{1}' can be invoked. The '{0}' method must be called before '{1}' can be invoked. Unsupported hash algorithm. Unsupported hash algorithm. The resource '{0}' specified by '{1}' could not be found. The resource '{0}' specified by '{1}' could not be found. Generated Code Generated Code Unable to perform '{0}' assignment. Tag helper property '{1}.{2}' must not be null. Unable to perform '{0}' assignment. Tag helper property '{1}.{2}' must not be null. Unexpected return value from '{1}.{2}' for URL '{0}'. If the '{1}' service has been overridden, change '{2}' to replace only the '~/' prefix. Otherwise, add the following directive to the Razor page to disable URL resolution relative to the application's 'webroot' setting: @{3} "{4}, {5}" Unexpected return value from '{1}.{2}' for URL '{0}'. If the '{1}' service has been overridden, change '{2}' to replace only the '~/' prefix. Otherwise, add the following directive to the Razor page to disable URL resolution relative to the application's 'webroot' setting: @{3} "{4}, {5}" A circular layout reference was detected when rendering '{0}'. The layout page '{1}' has already been rendered. A circular layout reference was detected when rendering '{0}'. The layout page '{1}' has already been rendered. The Razor page '{0}' failed to compile. Ensure that your application's {1} sets the '{2}' compilation property. The Razor page '{0}' failed to compile. Ensure that your application's {1} sets the '{2}' compilation property. '{0}' cannot be empty. These locations are required to locate a view for rendering. '{0}' cannot be empty. These locations are required to locate a view for rendering. Nesting of TagHelper attribute writing scopes is not supported. Nesting of TagHelper attribute writing scopes is not supported. Resolves tag helper types from the of the application. Initializes a new instance. The of the application. The list of tag helper 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 tag helper types in an MVC application. Discovers tag helpers from a list of instances. implementation targeting elements containing attributes with URL expected values. Resolves URLs starting with '~/' (relative to the application's 'webroot' setting) that are not targeted by other s. Runs prior to other s to ensure application-relative URLs are resolved. Creates a new . The . The . Resolves and updates URL values starting with '~/' (relative to the application's 'webroot' setting) for 's whose is . The attribute name used to lookup values to resolve. The . Tries to resolve the given value relative to the application's 'webroot' setting. The URL to resolve. Absolute URL beginning with the application's virtual root. null if could not be resolved. true if the could be resolved; false otherwise. Tries to resolve the given value relative to the application's 'webroot' setting. The URL to resolve. Absolute URL beginning with the application's virtual root. null if could not be resolved. true if the could be resolved; false otherwise. Sets up default options for . Initializes a new instance of . for the application.