Condividi tramite


RoutePatternFactory.Constraint Metodo

Definizione

Overload

Constraint(IRouteConstraint)

Crea un RoutePatternParameterPolicyReference oggetto dal vincolo fornito.

Constraint(Object)

Crea un RoutePatternParameterPolicyReference oggetto dall'controint fornito.

Constraint(String)

Crea un RoutePatternParameterPolicyReference oggetto dal vincolo fornito.

Constraint(IRouteConstraint)

Origine:
RoutePatternFactory.cs
Origine:
RoutePatternFactory.cs

Crea un RoutePatternParameterPolicyReference oggetto dal vincolo fornito.

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

Parametri

constraint
IRouteConstraint

Oggetto del vincolo.

Restituisce

Oggetto RoutePatternParameterPolicyReference.

Si applica a

Constraint(Object)

Origine:
RoutePatternFactory.cs
Origine:
RoutePatternFactory.cs

Crea un RoutePatternParameterPolicyReference oggetto dall'controint fornito.

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

Parametri

constraint
Object

Oggetto vincolo, che deve essere di tipo IRouteConstraint o String. Se l'oggetto vincolo è un oggetto, verrà trasformato in un'istanza String di RegexRouteConstraint.

Restituisce

Oggetto RoutePatternParameterPolicyReference.

Si applica a

Constraint(String)

Origine:
RoutePatternFactory.cs
Origine:
RoutePatternFactory.cs

Crea un RoutePatternParameterPolicyReference oggetto dal vincolo fornito.

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

Parametri

constraint
String

Testo del vincolo, che verrà risolto da ParameterPolicyFactory.

Restituisce

Oggetto RoutePatternParameterPolicyReference.

Si applica a