Partager via


RazorComponentsEndpointConventionBuilderExtensions.WithStaticAssets Méthode

Définition

Définit une ResourceAssetCollection et des métadonnées ImportMapDefinition pour l’application de composant.

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

Paramètres

manifestPath
String

Manifeste associé aux ressources.

Retours

Le RazorComponentsEndpointConventionBuilder.

Remarques

La manifestPath doit correspondre au chemin du fichier manifes fourni à l’appel MapStaticAssets(IEndpointRouteBuilder, String).

S’applique à