ParameterView Struct

Definition

Represents a collection of parameters supplied to an IComponent by its parent in the render tree.

C#
public readonly struct ParameterView
Inheritance
ParameterView

Properties

Empty

Gets an empty ParameterView.

Methods

FromDictionary(IDictionary<String,Object>)

Creates a new ParameterView from the given IDictionary<TKey,TValue>.

GetEnumerator()

Returns an enumerator that iterates through the ParameterView.

GetValueOrDefault<TValue>(String, TValue)

Gets the value of the parameter with the specified name, or a specified default value if no such parameter exists in the collection.

GetValueOrDefault<TValue>(String)

Gets the value of the parameter with the specified name, or a default value if no such parameter exists in the collection.

SetParameterProperties(Object)

For each parameter property on target, updates its value to match the corresponding entry in the ParameterView.

ToDictionary()

Returns a dictionary populated with the contents of the ParameterView.

TryGetValue<TValue>(String, TValue)

Gets the value of the parameter with the specified name.

Applies to

Product Versions
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0