File: SupplyParameterFromQueryAttribute.cs
Web Access
Project: src\src\Components\Components\src\Microsoft.AspNetCore.Components.csproj (Microsoft.AspNetCore.Components)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.AspNetCore.Components;
 
/// <summary>
/// Indicates that routing components may supply a value for the parameter from the
/// current URL querystring. They may also supply further values if the URL querystring changes.
/// </summary>
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]
public sealed class SupplyParameterFromQueryAttribute : CascadingParameterAttributeBase
{
    /// <summary>
    /// Gets or sets the name of the querystring parameter. If null, the querystring
    /// parameter is assumed to have the same name as the associated property.
    /// </summary>
    public string? Name { get; set; }
}