RazorComponentsEndpointConventionBuilderExtensions.WithStaticAssets Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Nastaví metadata ResourceAssetCollection a ImportMapDefinition pro aplikaci komponent.
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
Parametry
- manifestPath
- String
Manifest přidružený k prostředkům.
Návraty
RazorComponentsEndpointConventionBuilder.
Poznámky
manifestPath
musí odpovídat cestě k souboru manifes zadanému MapStaticAssets(IEndpointRouteBuilder, String) volání.