Compartir a través de


RoutePatternFactory.Constraint Método

Definición

Sobrecargas

Constraint(IRouteConstraint)

Crea a RoutePatternParameterPolicyReference partir de la restricción proporcionada.

Constraint(Object)

Crea un a RoutePatternParameterPolicyReference partir del contraint proporcionado.

Constraint(String)

Crea a RoutePatternParameterPolicyReference partir de la restricción proporcionada.

Constraint(IRouteConstraint)

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

Crea a RoutePatternParameterPolicyReference partir de la restricción proporcionada.

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

Parámetros

constraint
IRouteConstraint

Objeto de la restricción.

Devoluciones

RoutePatternParameterPolicyReference.

Se aplica a

Constraint(Object)

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

Crea un a RoutePatternParameterPolicyReference partir del contraint proporcionado.

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

Parámetros

constraint
Object

Objeto de restricción, que debe ser de tipo IRouteConstraint o String. Si el objeto de restricción es , String se transformará en una instancia de RegexRouteConstraint.

Devoluciones

RoutePatternParameterPolicyReference.

Se aplica a

Constraint(String)

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

Crea a RoutePatternParameterPolicyReference partir de la restricción proporcionada.

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

Parámetros

constraint
String

El texto de restricción, que se resolverá mediante ParameterPolicyFactory.

Devoluciones

RoutePatternParameterPolicyReference.

Se aplica a