Share via


CascadingValueSource<TValue> Constructors

Definition

Overloads

CascadingValueSource<TValue>(Func<TValue>, Boolean)

Constructs an instance of CascadingValueSource<TValue>.

CascadingValueSource<TValue>(TValue, Boolean)

Constructs an instance of CascadingValueSource<TValue>.

CascadingValueSource<TValue>(String, Func<TValue>, Boolean)

Constructs an instance of CascadingValueSource<TValue>.

CascadingValueSource<TValue>(String, TValue, Boolean)

Constructs an instance of CascadingValueSource<TValue>.

CascadingValueSource<TValue>(Func<TValue>, Boolean)

Source:
CascadingValueSource.cs
Source:
CascadingValueSource.cs

Constructs an instance of CascadingValueSource<TValue>.

public CascadingValueSource (Func<TValue> initialValueFactory, bool isFixed);
new Microsoft.AspNetCore.Components.CascadingValueSource<'Value> : Func<'Value> * bool -> Microsoft.AspNetCore.Components.CascadingValueSource<'Value>
Public Sub New (initialValueFactory As Func(Of TValue), isFixed As Boolean)

Parameters

initialValueFactory
Func<TValue>

A callback that produces the initial value when first required.

isFixed
Boolean

A flag to indicate whether the value is fixed. If false, all receipients will subscribe for update notifications, which you can issue by calling NotifyChangedAsync(). These subscriptions come at a performance cost, so if the value will not change, set isFixed to true.

Applies to

CascadingValueSource<TValue>(TValue, Boolean)

Source:
CascadingValueSource.cs
Source:
CascadingValueSource.cs

Constructs an instance of CascadingValueSource<TValue>.

public CascadingValueSource (TValue value, bool isFixed);
new Microsoft.AspNetCore.Components.CascadingValueSource<'Value> : 'Value * bool -> Microsoft.AspNetCore.Components.CascadingValueSource<'Value>
Public Sub New (value As TValue, isFixed As Boolean)

Parameters

value
TValue

The initial value.

isFixed
Boolean

A flag to indicate whether the value is fixed. If false, all receipients will subscribe for update notifications, which you can issue by calling NotifyChangedAsync(). These subscriptions come at a performance cost, so if the value will not change, set isFixed to true.

Applies to

CascadingValueSource<TValue>(String, Func<TValue>, Boolean)

Source:
CascadingValueSource.cs
Source:
CascadingValueSource.cs

Constructs an instance of CascadingValueSource<TValue>.

public CascadingValueSource (string name, Func<TValue> initialValueFactory, bool isFixed);
new Microsoft.AspNetCore.Components.CascadingValueSource<'Value> : string * Func<'Value> * bool -> Microsoft.AspNetCore.Components.CascadingValueSource<'Value>
Public Sub New (name As String, initialValueFactory As Func(Of TValue), isFixed As Boolean)

Parameters

name
String

A name for the cascading value. If set, CascadingParameterAttribute can be configured to match based on this name.

initialValueFactory
Func<TValue>

A callback that produces the initial value when first required.

isFixed
Boolean

A flag to indicate whether the value is fixed. If false, all receipients will subscribe for update notifications, which you can issue by calling NotifyChangedAsync(). These subscriptions come at a performance cost, so if the value will not change, set isFixed to true.

Applies to

CascadingValueSource<TValue>(String, TValue, Boolean)

Source:
CascadingValueSource.cs
Source:
CascadingValueSource.cs

Constructs an instance of CascadingValueSource<TValue>.

public CascadingValueSource (string name, TValue value, bool isFixed);
new Microsoft.AspNetCore.Components.CascadingValueSource<'Value> : string * 'Value * bool -> Microsoft.AspNetCore.Components.CascadingValueSource<'Value>
Public Sub New (name As String, value As TValue, isFixed As Boolean)

Parameters

name
String

A name for the cascading value. If set, CascadingParameterAttribute can be configured to match based on this name.

value
TValue

The initial value.

isFixed
Boolean

A flag to indicate whether the value is fixed. If false, all receipients will subscribe for update notifications, which you can issue by calling NotifyChangedAsync(). These subscriptions come at a performance cost, so if the value will not change, set isFixed to true.

Applies to