RazorComponentsEndpointConventionBuilderExtensions.WithStaticAssets Método

Definição

Define um ResourceAssetCollection e metadados ImportMapDefinition para o aplicativo de componente.

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

Parâmetros

manifestPath
String

O manifesto associado aos ativos.

Retornos

O RazorComponentsEndpointConventionBuilder.

Comentários

O manifestPath deve corresponder ao caminho do arquivo manifes fornecido à chamada MapStaticAssets(IEndpointRouteBuilder, String).

Aplica-se a