ApiParameterRouteInfo.Constraints Vlastnost

Definice

Získá nebo nastaví sadu IRouteConstraint objektů pro parametr.

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)

Hodnota vlastnosti

IEnumerable<IRouteConstraint>

Poznámky

Omezení trasy se použijí pouze v případech, kdy je hodnota svázaná z cesty adresy URL. Podívejte se Source na zdroj dat, který se považuje za považován.

Platí pro