次の方法で共有


IConnectionBuilder.Use メソッド

定義

アプリケーションの接続パイプラインにミドルウェア デリゲートを追加します。

public:
 Microsoft::AspNetCore::Connections::IConnectionBuilder ^ Use(Func<Microsoft::AspNetCore::Connections::ConnectionDelegate ^, Microsoft::AspNetCore::Connections::ConnectionDelegate ^> ^ middleware);
public Microsoft.AspNetCore.Connections.IConnectionBuilder Use (Func<Microsoft.AspNetCore.Connections.ConnectionDelegate,Microsoft.AspNetCore.Connections.ConnectionDelegate> middleware);
abstract member Use : Func<Microsoft.AspNetCore.Connections.ConnectionDelegate, Microsoft.AspNetCore.Connections.ConnectionDelegate> -> Microsoft.AspNetCore.Connections.IConnectionBuilder
Public Function Use (middleware As Func(Of ConnectionDelegate, ConnectionDelegate)) As IConnectionBuilder

パラメーター

middleware
Func<ConnectionDelegate,ConnectionDelegate>

ミドルウェア デリゲート。

戻り値

IConnectionBuilder

適用対象