ActionModel.RouteValues Property

Definition

Gets a collection of route values that must be present in the Values for the corresponding action to be selected.

public:
 property System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ RouteValues { System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ get(); };
public System.Collections.Generic.IDictionary<string,string> RouteValues { get; }
public System.Collections.Generic.IDictionary<string,string?> RouteValues { get; }
member this.RouteValues : System.Collections.Generic.IDictionary<string, string>
Public ReadOnly Property RouteValues As IDictionary(Of String, String)

Property Value

Remarks

The value of ActionName is considered an implicit route value corresponding to the key action and the value of ControllerName is considered an implicit route value corresponding to the key controller. These entries will be implicitly added to RouteValues when the action descriptor is created, but will not be visible in RouteValues.

Entries in RouteValues can override entries in RouteValues.

Applies to