Język

RoutePatternFactory.Constraint Metoda

Definicja

Przeciążenia

Nazwisko Opis
Constraint(IRouteConstraint)

Tworzy element RoutePatternParameterPolicyReference na podstawie podanego ograniczenia.

Constraint(Object)

Tworzy element RoutePatternParameterPolicyReference na podstawie podanego ograniczenia.

Constraint(String)

Tworzy element RoutePatternParameterPolicyReference na podstawie podanego ograniczenia.

Constraint(IRouteConstraint)

Źródło:
RoutePatternFactory.cs
Źródło:
RoutePatternFactory.cs

Tworzy element RoutePatternParameterPolicyReference na podstawie podanego ograniczenia.

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPolicyReference ^ Constraint(Microsoft::AspNetCore::Routing::IRouteConstraint ^ constraint);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference Constraint(Microsoft.AspNetCore.Routing.IRouteConstraint constraint);
static member Constraint : Microsoft.AspNetCore.Routing.IRouteConstraint -> Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference
Public Shared Function Constraint (constraint As IRouteConstraint) As RoutePatternParameterPolicyReference

Parametry

constraint
IRouteConstraint

Obiekt ograniczeń.

Zwraca

RoutePatternParameterPolicyReference.

Dotyczy

Constraint(Object)

Źródło:
RoutePatternFactory.cs
Źródło:
RoutePatternFactory.cs

Tworzy element RoutePatternParameterPolicyReference na podstawie podanego ograniczenia.

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPolicyReference ^ Constraint(System::Object ^ constraint);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference Constraint(object constraint);
static member Constraint : obj -> Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference
Public Shared Function Constraint (constraint As Object) As RoutePatternParameterPolicyReference

Parametry

constraint
Object

Obiekt ograniczeń, który musi być typu IRouteConstraint lub String. Jeśli obiekt ograniczeń jest obiektem String , zostanie przekształcony w wystąpienie RegexRouteConstraintklasy .

Zwraca

RoutePatternParameterPolicyReference.

Dotyczy

Constraint(String)

Źródło:
RoutePatternFactory.cs
Źródło:
RoutePatternFactory.cs

Tworzy element RoutePatternParameterPolicyReference na podstawie podanego ograniczenia.

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPolicyReference ^ Constraint(System::String ^ constraint);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference Constraint(string constraint);
static member Constraint : string -> Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference
Public Shared Function Constraint (constraint As String) As RoutePatternParameterPolicyReference

Parametry

constraint
String

Tekst ograniczeń, który zostanie rozwiązany przez ParameterPolicyFactoryelement .

Zwraca

RoutePatternParameterPolicyReference.

Dotyczy