RoutePattern.Defaults Property

Definition

Gets the set of default values for the route pattern. The keys of Defaults are the route parameter names.

C#
public System.Collections.Generic.IReadOnlyDictionary<string,object> Defaults { get; }
C#
public System.Collections.Generic.IReadOnlyDictionary<string,object?> Defaults { get; }

Property Value

Applies to

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