OpenApiRouteHandlerBuilderExtensions.ExcludeFromDescription 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ExcludeFromDescription(RouteHandlerBuilder) |
IExcludeFromDescriptionMetadata
Metadata将 添加到 由 生成的所有终结点的 |
ExcludeFromDescription<TBuilder>(TBuilder) |
IExcludeFromDescriptionMetadata
Metadata将 添加到 由 生成的所有终结点的 |
ExcludeFromDescription(RouteHandlerBuilder)
IExcludeFromDescriptionMetadata
Metadata将 添加到 由 生成的所有终结点的 builder
。
public static Microsoft.AspNetCore.Builder.RouteHandlerBuilder ExcludeFromDescription (this Microsoft.AspNetCore.Builder.RouteHandlerBuilder builder);
static member ExcludeFromDescription : Microsoft.AspNetCore.Builder.RouteHandlerBuilder -> Microsoft.AspNetCore.Builder.RouteHandlerBuilder
<Extension()>
Public Function ExcludeFromDescription (builder As RouteHandlerBuilder) As RouteHandlerBuilder
参数
- builder
- RouteHandlerBuilder
返回
可用于 RouteHandlerBuilder 进一步自定义终结点的 。
适用于
ExcludeFromDescription<TBuilder>(TBuilder)
IExcludeFromDescriptionMetadata
Metadata将 添加到 由 生成的所有终结点的 builder
。
public static TBuilder ExcludeFromDescription<TBuilder> (this TBuilder builder) where TBuilder : Microsoft.AspNetCore.Builder.IEndpointConventionBuilder;
static member ExcludeFromDescription : 'Builder -> 'Builder (requires 'Builder :> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder)
<Extension()>
Public Function ExcludeFromDescription(Of TBuilder As IEndpointConventionBuilder) (builder As TBuilder) As TBuilder
类型参数
- TBuilder
参数
- builder
- TBuilder
返回
TBuilder
可用于 IEndpointConventionBuilder 进一步自定义终结点的 。