Sdílet prostřednictvím


RazorComponentsEndpointConventionBuilderExtensions.WithStaticAssets Metoda

Definice

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í.

Platí pro