共用方式為


DefaultViewComponentActivator.Release(ViewComponentContext, Object) 方法

定義

釋放 ViewComponent 實例。

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

參數

context
ViewComponentContext

ViewComponentContext 關聯的 viewComponent

viewComponent
Object

要釋放的 ViewComponent

實作

適用於