RoutePatternFactory.ParameterPolicy Metodo

Definizione

Overload

ParameterPolicy(IParameterPolicy)

Crea un RoutePatternParameterPolicyReference oggetto dall'oggetto specificato.

ParameterPolicy(String)

Crea un RoutePatternParameterPolicyReference oggetto dall'oggetto specificato.

ParameterPolicy(IParameterPolicy)

Origine:
RoutePatternFactory.cs
Origine:
RoutePatternFactory.cs

Crea un RoutePatternParameterPolicyReference oggetto dall'oggetto specificato.

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

Parametri

parameterPolicy
IParameterPolicy

Oggetto criteri di parametro.

Restituisce

Oggetto RoutePatternParameterPolicyReference.

Si applica a

ParameterPolicy(String)

Origine:
RoutePatternFactory.cs
Origine:
RoutePatternFactory.cs

Crea un RoutePatternParameterPolicyReference oggetto dall'oggetto specificato.

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

Parametri

parameterPolicy
String

Testo del criterio del parametro, che verrà risolto da ParameterPolicyFactory.

Restituisce

Oggetto RoutePatternParameterPolicyReference.

Si applica a