Class SfComponentActivator
A implementation of Microsoft.AspNetCore.Components.IComponentActivator for Syncfusion Blazor components used to initialize custom components that can be registered through dependency injection.
Inheritance
System.Object
SfComponentActivator
Implements
Microsoft.AspNetCore.Components.IComponentActivator
Namespace: Syncfusion.Blazor
Assembly: Syncfusion.Blazor.dll
Syntax
public class SfComponentActivator : Object, IComponentActivator
Constructors
SfComponentActivator(IServiceProvider)
Default constructor for SfComponentActivator class.
Declaration
public SfComponentActivator(IServiceProvider provider)
Parameters
Type | Name | Description |
---|---|---|
System.IServiceProvider | provider | Service provider for registered components. |
Methods
CreateInstance(Type)
Create component for the specified component type.
Declaration
public IComponent CreateInstance(Type componentType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | componentType | Type of component need to be created. |
Returns
Type | Description |
---|---|
Microsoft.AspNetCore.Components.IComponent | Returns newly created component. |
Implements
Microsoft.AspNetCore.Components.IComponentActivator