共用方式為


IViewComponentActivator.Release(ViewComponentContext, Object) 方法

定義

釋放 ViewComponent 實例。

public:
 void Release(Microsoft::AspNetCore::Mvc::ViewComponents::ViewComponentContext ^ context, System::Object ^ viewComponent);
public void Release (Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext context, object viewComponent);
abstract member Release : Microsoft.AspNetCore.Mvc.ViewComponents.ViewComponentContext * obj -> unit
Public Sub Release (context As ViewComponentContext, viewComponent As Object)

參數

context
ViewComponentContext

ViewComponentContext 關聯的 viewComponent

viewComponent
Object

要釋放的 ViewComponent

適用於