RoutingEndpointConventionBuilderExtensions クラス

定義

を使用して IEndpointConventionBuilderエンドポイント インスタンスにルーティング メタデータを追加するための拡張メソッド。

public ref class RoutingEndpointConventionBuilderExtensions abstract sealed
public static class RoutingEndpointConventionBuilderExtensions
type RoutingEndpointConventionBuilderExtensions = class
Public Module RoutingEndpointConventionBuilderExtensions
継承
RoutingEndpointConventionBuilderExtensions

メソッド

DisableAntiforgery<TBuilder>(TBuilder)

ターゲット IEndpointConventionBuilderで生成されたすべてのエンドポイントの偽造防止トークン検証を無効にします。

RequireHost<TBuilder>(TBuilder, String[])

ルーティング中に、エンドポイントが指定されたホストのいずれかに一致する必要があります。

WithDisplayName<TBuilder>(TBuilder, Func<EndpointBuilder,String>)

DisplayNameによって作成されたすべてのビルダーに提供される func を使用して builderを設定します。

WithDisplayName<TBuilder>(TBuilder, String)

DisplayNameによってbuilder作成されたすべてのビルダーに対して 指定された displayName に を設定します。

WithFormMappingOptions<TBuilder>(TBuilder, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>)

ターゲット IEndpointConventionBuilderFormMappingOptionsMetadata生成されたすべてのエンドポイントに対して を構成します。

WithFormOptions<TBuilder>(TBuilder, Nullable<Boolean>, Nullable<Int32>, Nullable<Int64>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int32>, Nullable<Int64>)

ターゲット IEndpointConventionBuilderMicrosoft.AspNetCore.Http.Metadata.FormOptionsMetadata生成されたすべてのエンドポイントに対して を構成します。

WithGroupName<TBuilder>(TBuilder, String)

を指定して EndpointGroupNameAttribute 、ターゲット IEndpointConventionBuilder で生成されるすべてのエンドポイントの を設定します endpointGroupName。 エンドポイントの は IEndpointGroupNameMetadata 、OpenAPI 仕様でエンドポイントの GroupName を設定するために使用されます。

WithMetadata<TBuilder>(TBuilder, Object[])

によってbuilder生成されたすべてのビルダーに対してMetadata、指定されたメタデータitemsを に追加します。

WithName<TBuilder>(TBuilder, String)

IEndpointNameMetadataを指定したターゲットIEndpointConventionBuilderで生成されたすべてのエンドポイントの Metadata コレクションに をendpointName追加します。 エンドポイントの は IEndpointNameMetadata リンク生成に使用され、指定されたエンドポイントの OpenAPI 仕様の操作 ID として扱われます。

WithOrder<TBuilder>(TBuilder, Int32)

Orderによってbuilder作成されたすべてのビルダーに対して 指定された order に を設定します。

適用対象