Udostępnij za pośrednictwem


RazorComponentsEndpointConventionBuilderExtensions.WithStaticAssets Metoda

Definicja

Ustawia metadane ResourceAssetCollection i ImportMapDefinition dla aplikacji składników.

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 skojarzony z elementami zawartości.

Zwraca

RazorComponentsEndpointConventionBuilder.

Uwagi

manifestPath musi odpowiadać ścieżce pliku manifes dostarczonego do wywołania MapStaticAssets(IEndpointRouteBuilder, String).

Dotyczy