Share via


RoutePatternFactory.ParameterPolicy Method

Definition

Overloads

ParameterPolicy(IParameterPolicy)

Creates a RoutePatternParameterPolicyReference from the provided object.

ParameterPolicy(String)

Creates a RoutePatternParameterPolicyReference from the provided object.

ParameterPolicy(IParameterPolicy)

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

Creates a RoutePatternParameterPolicyReference from the provided object.

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

Parameters

parameterPolicy
IParameterPolicy

The parameter policy object.

Returns

The RoutePatternParameterPolicyReference.

Applies to

ParameterPolicy(String)

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

Creates a RoutePatternParameterPolicyReference from the provided object.

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

Parameters

parameterPolicy
String

The parameter policy text, which will be resolved by ParameterPolicyFactory.

Returns

The RoutePatternParameterPolicyReference.

Applies to