共用方式為


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

適用於