Share via


IViewComponentFactory.ReleaseViewComponent Method

Definition

Releases a view component instance.

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

Parameters

context
ViewComponentContext

The context associated with the component.

component
Object

The view component.

Applies to