Partilhar via


RoutePatternFactory.ParameterPolicy Método

Definição

Sobrecargas

ParameterPolicy(IParameterPolicy)

Cria um RoutePatternParameterPolicyReference do objeto fornecido.

ParameterPolicy(String)

Cria um RoutePatternParameterPolicyReference do objeto fornecido.

ParameterPolicy(IParameterPolicy)

Origem:
RoutePatternFactory.cs
Origem:
RoutePatternFactory.cs

Cria um RoutePatternParameterPolicyReference do objeto fornecido.

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPolicyReference ^ ParameterPolicy(Microsoft::AspNetCore::Routing::IParameterPolicy ^ parameterPolicy);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference ParameterPolicy (Microsoft.AspNetCore.Routing.IParameterPolicy parameterPolicy);
static member ParameterPolicy : Microsoft.AspNetCore.Routing.IParameterPolicy -> Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference
Public Shared Function ParameterPolicy (parameterPolicy As IParameterPolicy) As RoutePatternParameterPolicyReference

Parâmetros

parameterPolicy
IParameterPolicy

O objeto de política de parâmetro.

Retornos

O RoutePatternParameterPolicyReference.

Aplica-se a

ParameterPolicy(String)

Origem:
RoutePatternFactory.cs
Origem:
RoutePatternFactory.cs

Cria um RoutePatternParameterPolicyReference do objeto fornecido.

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

Parâmetros

parameterPolicy
String

O texto da política de parâmetro, que será resolvido por ParameterPolicyFactory.

Retornos

O RoutePatternParameterPolicyReference.

Aplica-se a