Share via


IComponentPropertyActivator.GetActivator(Type) Method

Definition

Gets a delegate that activates properties on a component of the specified type.

public Action<IServiceProvider,Microsoft.AspNetCore.Components.IComponent> GetActivator(Type componentType);
abstract member GetActivator : Type -> Action<IServiceProvider, Microsoft.AspNetCore.Components.IComponent>
Public Function GetActivator (componentType As Type) As Action(Of IServiceProvider, IComponent)

Parameters

componentType
Type

The type of component to create an activator for.

Returns

A delegate that takes an IServiceProvider and an IComponent instance, and populates the component's injectable properties.

Applies to