RazorComponentsEndpointConventionBuilderExtensions.WithStaticAssets 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定元件應用程式的 ResourceAssetCollection 和 ImportMapDefinition 元數據。
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
參數
- manifestPath
- String
與資產相關聯的指令清單。
傳回
RazorComponentsEndpointConventionBuilder。
備註
manifestPath
必須符合提供給 MapStaticAssets(IEndpointRouteBuilder, String) 呼叫之管理檔案的路徑。