FragmentContainer Class
The root component of a fragment rendered by ComponentTestHost.RenderAsync.
public sealed class FragmentContainer : IComponent- Implements
Constructors
| Name | Description |
|---|---|
| FragmentContainer() |
FragmentContainer()
public FragmentContainer()No documentation is available.
Properties
| Name | Description |
|---|---|
| ChildContent | Gets or sets the rendered fragment. |
ChildContent
FragmentContainer.csMethods
| Name | Description |
|---|---|
| Attach(RenderHandle) | Attaches the component to a RenderHandle. |
| SetParametersAsync(ParameterView) | Sets parameters supplied by the component's parent in the render tree. |
Attach(RenderHandle)
FragmentContainer.csAttaches the component to a RenderHandle.
public void Attach(RenderHandle renderHandle)Parameters
renderHandleRenderHandle- A
RenderHandlethat allows the component to be rendered.
SetParametersAsync(ParameterView)
FragmentContainer.csSets parameters supplied by the component's parent in the render tree.
public Task SetParametersAsync(ParameterView parameters)Parameters
parametersParameterView- The parameters.
Returns
Task A Task that completes when the component has finished updating and rendering itself.
Remarks
The IComponent.SetParametersAsync method should be passed the entire set of parameter values each time IComponent.SetParametersAsync is called. It not required that the caller supply a parameter value for all parameters that are logically understood by the component.