Condividi tramite


RazorComponentsEndpointConventionBuilderExtensions.WithStaticAssets Metodo

Definizione

Imposta un ResourceAssetCollection e i metadati ImportMapDefinition per l'applicazione 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

Parametri

manifestPath
String

Manifesto associato agli asset.

Restituisce

Oggetto RazorComponentsEndpointConventionBuilder.

Commenti

Il manifestPath deve corrispondere al percorso del file manifes fornito alla chiamata MapStaticAssets(IEndpointRouteBuilder, String).

Si applica a