Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

CascadingParameterAttribute Class

Definition

Namespace:
Microsoft.AspNetCore.Components
Assembly:
Microsoft.AspNetCore.Components.dll
Package:
Microsoft.AspNetCore.Components v10.0.0
Package:
Microsoft.AspNetCore.Components v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.Components v3.0.3
Package:
Microsoft.AspNetCore.Components v3.1.18
Package:
Microsoft.AspNetCore.Components v5.0.9
Package:
Microsoft.AspNetCore.Components v6.0.6
Package:
Microsoft.AspNetCore.Components v7.0.5
Package:
Microsoft.AspNetCore.Components v8.0.19
Package:
Microsoft.AspNetCore.Components v9.0.8
Source:
CascadingParameterAttribute.cs
Source:
CascadingParameterAttribute.cs
Source:
CascadingParameterAttribute.cs
Source:
CascadingParameterAttribute.cs
Source:
CascadingParameterAttribute.cs
Source:
CascadingParameterAttribute.cs
Source:
CascadingParameterAttribute.cs
Source:
CascadingParameterAttribute.cs
Source:
CascadingParameterAttribute.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Denotes the target member as a cascading component parameter. Its value will be supplied by the closest ancestor CascadingValue<TValue> component that supplies values with a compatible type and name.

public ref class CascadingParameterAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class CascadingParameterAttribute : Microsoft.AspNetCore.Components.CascadingParameterAttributeBase
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class CascadingParameterAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type CascadingParameterAttribute = class
 inherit CascadingParameterAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type CascadingParameterAttribute = class
 inherit Attribute
Public NotInheritable Class CascadingParameterAttribute
Inherits CascadingParameterAttributeBase
Public NotInheritable Class CascadingParameterAttribute
Inherits Attribute
Inheritance
CascadingParameterAttribute
Inheritance
CascadingParameterAttribute
Attributes

Constructors

Name Description
CascadingParameterAttribute()

Properties

Name Description
Name

If specified, the parameter value will be supplied by the closest ancestor CascadingValue<TValue> that supplies a value with this name.

If null, the parameter value will be supplied by the closest ancestor CascadingValue<TValue> that supplies a value with a compatible type.

Applies to


Feedback

Was this page helpful?