Compartir a través de


RazorComponentsEndpointConventionBuilderExtensions.WithStaticAssets Método

Definición

Establece un ResourceAssetCollection y ImportMapDefinition metadatos para la aplicación de componentes.

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

Manifiesto asociado a los recursos.

Devoluciones

El RazorComponentsEndpointConventionBuilder.

Comentarios

El manifestPath debe coincidir con la ruta de acceso del archivo de manifes proporcionado a la llamada MapStaticAssets(IEndpointRouteBuilder, String).

Se aplica a