ControllerActionEndpointConventionBuilderResourceCollectionExtensions.WithStaticAssets 方法

定义

ResourceAssetCollection 元数据实例添加到终结点。

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

参数

manifestPath
String

与资产关联的清单。

返回

适用于