RazorComponentsEndpointConventionBuilderExtensions.WithStaticAssets Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets a ResourceAssetCollection and ImportMapDefinition metadata for the component application.
public static Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder WithStaticAssets (this Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder builder, string? manifestPath = default);
static member WithStaticAssets : Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder * string -> Microsoft.AspNetCore.Builder.RazorComponentsEndpointConventionBuilder
<Extension()>
Public Function WithStaticAssets (builder As RazorComponentsEndpointConventionBuilder, Optional manifestPath As String = Nothing) As RazorComponentsEndpointConventionBuilder
Parameters
- manifestPath
- String
The manifest associated with the assets.
Returns
The RazorComponentsEndpointConventionBuilder.
Remarks
The manifestPath
must match the path of the manifes file provided to the MapStaticAssets(IEndpointRouteBuilder, String) call.