ParameterPolicyFactory.Create 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
Create(RoutePatternParameterPart, IParameterPolicy) |
Creates a parameter policy. |
Create(RoutePatternParameterPart, RoutePatternParameterPolicyReference) |
Creates a parameter policy. |
Create(RoutePatternParameterPart, String) |
Creates a parameter policy. |
Create(RoutePatternParameterPart, IParameterPolicy)
- Source:
- ParameterPolicyFactory.cs
- Source:
- ParameterPolicyFactory.cs
Creates a parameter policy.
public:
abstract Microsoft::AspNetCore::Routing::IParameterPolicy ^ Create(Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPart ^ parameter, Microsoft::AspNetCore::Routing::IParameterPolicy ^ parameterPolicy);
public abstract Microsoft.AspNetCore.Routing.IParameterPolicy Create (Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart parameter, Microsoft.AspNetCore.Routing.IParameterPolicy parameterPolicy);
public abstract Microsoft.AspNetCore.Routing.IParameterPolicy Create (Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart? parameter, Microsoft.AspNetCore.Routing.IParameterPolicy parameterPolicy);
abstract member Create : Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart * Microsoft.AspNetCore.Routing.IParameterPolicy -> Microsoft.AspNetCore.Routing.IParameterPolicy
Public MustOverride Function Create (parameter As RoutePatternParameterPart, parameterPolicy As IParameterPolicy) As IParameterPolicy
Parameters
- parameter
- RoutePatternParameterPart
The parameter the parameter policy is being created for.
- parameterPolicy
- IParameterPolicy
An existing parameter policy.
Returns
The IParameterPolicy for the parameter.
Applies to
Create(RoutePatternParameterPart, RoutePatternParameterPolicyReference)
- Source:
- ParameterPolicyFactory.cs
- Source:
- ParameterPolicyFactory.cs
Creates a parameter policy.
public:
Microsoft::AspNetCore::Routing::IParameterPolicy ^ Create(Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPart ^ parameter, Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPolicyReference ^ reference);
public Microsoft.AspNetCore.Routing.IParameterPolicy Create (Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart parameter, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference reference);
public Microsoft.AspNetCore.Routing.IParameterPolicy Create (Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart? parameter, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference reference);
member this.Create : Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart * Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference -> Microsoft.AspNetCore.Routing.IParameterPolicy
Public Function Create (parameter As RoutePatternParameterPart, reference As RoutePatternParameterPolicyReference) As IParameterPolicy
Parameters
- parameter
- RoutePatternParameterPart
The parameter the parameter policy is being created for.
- reference
- RoutePatternParameterPolicyReference
The reference to resolve.
Returns
The IParameterPolicy for the parameter.
Applies to
Create(RoutePatternParameterPart, String)
- Source:
- ParameterPolicyFactory.cs
- Source:
- ParameterPolicyFactory.cs
Creates a parameter policy.
public:
abstract Microsoft::AspNetCore::Routing::IParameterPolicy ^ Create(Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPart ^ parameter, System::String ^ inlineText);
public abstract Microsoft.AspNetCore.Routing.IParameterPolicy Create (Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart parameter, string inlineText);
public abstract Microsoft.AspNetCore.Routing.IParameterPolicy Create (Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart? parameter, string inlineText);
abstract member Create : Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart * string -> Microsoft.AspNetCore.Routing.IParameterPolicy
Public MustOverride Function Create (parameter As RoutePatternParameterPart, inlineText As String) As IParameterPolicy
Parameters
- parameter
- RoutePatternParameterPart
The parameter the parameter policy is being created for.
- inlineText
- String
The inline text to resolve.
Returns
The IParameterPolicy for the parameter.