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

适用于