RoutePatternFactory.Constraint Método

Definição

Sobrecargas

Constraint(IRouteConstraint)

Cria um RoutePatternParameterPolicyReference com base na restrição fornecida.

Constraint(Object)

Cria um RoutePatternParameterPolicyReference do contraint fornecido.

Constraint(String)

Cria um RoutePatternParameterPolicyReference com base na restrição fornecida.

Constraint(IRouteConstraint)

Origem:
RoutePatternFactory.cs
Origem:
RoutePatternFactory.cs

Cria um RoutePatternParameterPolicyReference com base na restrição fornecida.

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

O objeto de restrição.

Retornos

O RoutePatternParameterPolicyReference.

Aplica-se a

Constraint(Object)

Origem:
RoutePatternFactory.cs
Origem:
RoutePatternFactory.cs

Cria um RoutePatternParameterPolicyReference do contraint fornecido.

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

O objeto de restrição, que deve ser do tipo IRouteConstraint ou String. Se o objeto de restrição for um String , ele será transformado em uma instância do RegexRouteConstraint.

Retornos

O RoutePatternParameterPolicyReference.

Aplica-se a

Constraint(String)

Origem:
RoutePatternFactory.cs
Origem:
RoutePatternFactory.cs

Cria um RoutePatternParameterPolicyReference com base na restrição fornecida.

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

O texto da restrição, que será resolvido por ParameterPolicyFactory.

Retornos

O RoutePatternParameterPolicyReference.

Aplica-se a