MockerBlazorTestBase<(Of <(<'T>)>)>..::..GetAllComponents<(Of <(<'TComponent>)>)> Method

Gets all components from the renderer and their state.

Namespace:  FastMoq.Web.Blazor
Assembly:  FastMoq.Web (in FastMoq.Web.dll)

Syntax


protected internal Dictionary<TComponent, ComponentState> GetAllComponents<TComponent>()
where TComponent : ComponentBase
Protected Friend Function GetAllComponents(Of TComponent As ComponentBase) As Dictionary(Of TComponent, ComponentState)
protected public:
generic<typename TComponent>
where TComponent : ComponentBase
Dictionary<TComponent, ComponentState^>^ GetAllComponents()

Type Parameters

TComponent
The type of the t component.

Return Value

Dictionary<TComponent, ComponentState> of all components.

Exceptions


ExceptionCondition
ArgumentExceptionUnable to get the renderer for this component.