共用方式為


PageActionEndpointConventionBuilderResourceCollectionExtensions.WithStaticAssets 方法

定義

ResourceAssetCollection 元數據實例新增至端點。

public static Microsoft.AspNetCore.Builder.PageActionEndpointConventionBuilder WithStaticAssets (this Microsoft.AspNetCore.Builder.PageActionEndpointConventionBuilder builder, string? manifestPath = default);
static member WithStaticAssets : Microsoft.AspNetCore.Builder.PageActionEndpointConventionBuilder * string -> Microsoft.AspNetCore.Builder.PageActionEndpointConventionBuilder
<Extension()>
Public Function WithStaticAssets (builder As PageActionEndpointConventionBuilder, Optional manifestPath As String = Nothing) As PageActionEndpointConventionBuilder

參數

manifestPath
String

與資產相關聯的指令清單。

傳回

適用於