Condividi tramite


IComponentPropertyActivator.GetActivator(Type) Metodo

Definizione

Ottiene un delegato che attiva le proprietà in un componente del tipo specificato.

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)

Parametri

componentType
Type

Tipo di componente per cui creare un attivatore.

Valori restituiti

Delegato che accetta un oggetto IServiceProvider e un'istanza IComponent e popola le proprietà iniettabili del componente.

Si applica a