Table of Contents

Class DialogParameters

Namespace
MudBlazor
Assembly
MudBlazor.dll

The parameters passed into a MudDialog instance.

public class DialogParameters : IEnumerable<KeyValuePair<string, object?>>, IEnumerable
Inheritance
DialogParameters
Implements
Derived
Inherited Members
Extension Methods

Constructors

DialogParameters()

public DialogParameters()

Properties

Count

The number of parameters.

public int Count { get; }

Property Value

int

this[string]

Gets or sets a parameter.

public object? this[string parameterName] { get; set; }

Parameters

parameterName string

The name of the parameter to find.

Property Value

object

The parameter value.

Methods

Add(string, object?)

Adds or updates a parameter.

public void Add(string parameterName, object? value)

Parameters

parameterName string

The name of the parameter.

value object

The value to add or update.

GetEnumerator()

Gets an enumerator for all parameters.

public IEnumerator<KeyValuePair<string, object?>> GetEnumerator()

Returns

IEnumerator<KeyValuePair<string, object>>

An enumerator of KeyValuePair<TKey, TValue> values.

Get<T>(string)

Gets an existing parameter.

public T? Get<T>(string parameterName)

Parameters

parameterName string

The name of the parameter to find.

Returns

T

The parameter value, if it exists.

Type Parameters

T

The type of value to return.

TryGet<T>(string)

Gets an existing parameter or a default value if nothing was found.

public T? TryGet<T>(string parameterName)

Parameters

parameterName string

The name of the parameter to find.

Returns

T

The parameter value, if it exists.

Type Parameters

T

The type of value to return.