ApiParameterRouteInfo.Constraints Property
Definition
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.
Gets or sets the set of IRouteConstraint objects for the parameter.
public:
property System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Routing::IRouteConstraint ^> ^ Constraints { System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Routing::IRouteConstraint ^> ^ get(); void set(System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Routing::IRouteConstraint ^> ^ value); };
public System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.IRouteConstraint> Constraints { get; set; }
public System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.IRouteConstraint>? Constraints { get; set; }
member this.Constraints : seq<Microsoft.AspNetCore.Routing.IRouteConstraint> with get, set
Public Property Constraints As IEnumerable(Of IRouteConstraint)
Property Value
Remarks
Route constraints are only applied when a value is bound from a URL's path. See Source for the data source considered.