共用方式為


IMiddlewareFactory.Release(IMiddleware) 方法

定義

IMiddleware在每個要求結束時釋放 實例。

public:
 void Release(Microsoft::AspNetCore::Http::IMiddleware ^ middleware);
public void Release (Microsoft.AspNetCore.Http.IMiddleware middleware);
abstract member Release : Microsoft.AspNetCore.Http.IMiddleware -> unit
Public Sub Release (middleware As IMiddleware)

參數

middleware
IMiddleware

要釋放的 IMiddleware 執行個體。

適用於