RoutePatternFactory.ParameterPolicy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.