Class ComponentParameterCollection
- Namespace
- Bunit
- Assembly
- Bunit.Core.dll
A collection for ComponentParameter.
public class ComponentParameterCollection : ICollection<ComponentParameter>, IReadOnlyCollection<ComponentParameter>, IEnumerable<ComponentParameter>, IEnumerable
- Inheritance
-
ComponentParameterCollection
- Implements
- Inherited Members
- Extension Methods
Constructors
ComponentParameterCollection()
public ComponentParameterCollection()
Properties
Count
Gets the number of ComponentParameter in the collection.
public int Count { get; }
Property Value
IsReadOnly
public bool IsReadOnly { get; }
Property Value
RenderMode
Gets or sets the IComponentRenderMode that will be specified in the render tree for component the parameters are being passed to.
public IComponentRenderMode? RenderMode { get; set; }
Property Value
Methods
Add(ComponentParameter)
Adds a item
to the collection.
public void Add(ComponentParameter item)
Parameters
item
ComponentParameterParameter to add to the collection.
Add(IEnumerable<ComponentParameter>)
Adds an enumerable of parameters to the collection.
public void Add(IEnumerable<ComponentParameter> parameters)
Parameters
parameters
IEnumerable<ComponentParameter>Parameters to add.
Clear()
public void Clear()
Contains(ComponentParameter)
Checks if the item
is in the collection.
public bool Contains(ComponentParameter item)
Parameters
item
ComponentParameterParameter to check with.
Returns
- bool
True if
item
is in the collection, false otherwise.
CopyTo(ComponentParameter[], int)
public void CopyTo(ComponentParameter[] array, int arrayIndex)
Parameters
array
ComponentParameter[]arrayIndex
int
GetEnumerator()
public IEnumerator<ComponentParameter> GetEnumerator()
Returns
Remove(ComponentParameter)
public bool Remove(ComponentParameter item)
Parameters
item
ComponentParameter
Returns
ToRenderFragment<TComponent>()
Creates a RenderFragment that will render a
component of type TComponent
with
the parameters in the collection passed to it.
public RenderFragment ToRenderFragment<TComponent>() where TComponent : IComponent
Returns
Type Parameters
TComponent
Type of component to render.