共用方式為


RunExtensions.Run(IApplicationBuilder, RequestDelegate) 方法

定義

將終端機中介軟體委派新增至應用程式的要求管線。

public:
[System::Runtime::CompilerServices::Extension]
 static void Run(Microsoft::AspNetCore::Builder::IApplicationBuilder ^ app, Microsoft::AspNetCore::Http::RequestDelegate ^ handler);
public static void Run (this Microsoft.AspNetCore.Builder.IApplicationBuilder app, Microsoft.AspNetCore.Http.RequestDelegate handler);
static member Run : Microsoft.AspNetCore.Builder.IApplicationBuilder * Microsoft.AspNetCore.Http.RequestDelegate -> unit
<Extension()>
Public Sub Run (app As IApplicationBuilder, handler As RequestDelegate)

參數

handler
RequestDelegate

處理要求的委派。

適用於