Share via


RoutePatternFactory.Parse Method

Definition

Overloads

Parse(String, Object, Object, Object)

Creates a RoutePattern from its string representation along with provided default values and parameter policies.

Parse(String, Object, Object)

Creates a RoutePattern from its string representation along with provided default values and parameter policies.

Parse(String, RouteValueDictionary, RouteValueDictionary, RouteValueDictionary)

Creates a RoutePattern from its string representation along with provided default values and parameter policies.

Parse(String)

Creates a RoutePattern from its string representation.

Parse(String, RouteValueDictionary, RouteValueDictionary)

Creates a RoutePattern from its string representation along with provided default values and parameter policies.

Parse(String, Object, Object, Object)

Source:
RoutePatternFactory.cs

Creates a RoutePattern from its string representation along with provided default values and parameter policies.

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePattern ^ Parse(System::String ^ pattern, System::Object ^ defaults, System::Object ^ parameterPolicies, System::Object ^ requiredValues);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Parse (string pattern, object defaults, object parameterPolicies, object requiredValues);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Parse (string pattern, object? defaults, object? parameterPolicies, object? requiredValues);
static member Parse : string * obj * obj * obj -> Microsoft.AspNetCore.Routing.Patterns.RoutePattern
Public Shared Function Parse (pattern As String, defaults As Object, parameterPolicies As Object, requiredValues As Object) As RoutePattern

Parameters

pattern
String

The route pattern string to parse.

defaults
Object

Additional default values to associated with the route pattern. May be null. The provided object will be converted to key-value pairs using RouteValueDictionary and then merged into the parsed route pattern.

parameterPolicies
Object

Additional parameter policies to associated with the route pattern. May be null. The provided object will be converted to key-value pairs using RouteValueDictionary and then merged into the parsed route pattern. Multiple policies can be specified for a key by providing a collection as the value.

requiredValues
Object

Route values that can be substituted for parameters in the route pattern. See remarks on RequiredValues.

Returns

The RoutePattern.

Applies to

Parse(String, Object, Object)

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

Creates a RoutePattern from its string representation along with provided default values and parameter policies.

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePattern ^ Parse(System::String ^ pattern, System::Object ^ defaults, System::Object ^ parameterPolicies);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Parse (string pattern, object defaults, object parameterPolicies);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Parse (string pattern, object? defaults, object? parameterPolicies);
static member Parse : string * obj * obj -> Microsoft.AspNetCore.Routing.Patterns.RoutePattern
Public Shared Function Parse (pattern As String, defaults As Object, parameterPolicies As Object) As RoutePattern

Parameters

pattern
String

The route pattern string to parse.

defaults
Object

Additional default values to associated with the route pattern. May be null. The provided object will be converted to key-value pairs using RouteValueDictionary and then merged into the parsed route pattern.

parameterPolicies
Object

Additional parameter policies to associated with the route pattern. May be null. The provided object will be converted to key-value pairs using RouteValueDictionary and then merged into the parsed route pattern. Multiple policies can be specified for a key by providing a collection as the value.

Returns

The RoutePattern.

Applies to

Parse(String, RouteValueDictionary, RouteValueDictionary, RouteValueDictionary)

Source:
RoutePatternFactory.cs

Creates a RoutePattern from its string representation along with provided default values and parameter policies.

public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Parse (string pattern, Microsoft.AspNetCore.Routing.RouteValueDictionary? defaults, Microsoft.AspNetCore.Routing.RouteValueDictionary? parameterPolicies, Microsoft.AspNetCore.Routing.RouteValueDictionary? requiredValues);
static member Parse : string * Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Routing.RouteValueDictionary -> Microsoft.AspNetCore.Routing.Patterns.RoutePattern
Public Shared Function Parse (pattern As String, defaults As RouteValueDictionary, parameterPolicies As RouteValueDictionary, requiredValues As RouteValueDictionary) As RoutePattern

Parameters

pattern
String

The route pattern string to parse.

defaults
RouteValueDictionary

Additional default values to associated with the route pattern. May be null. The provided object will be converted to key-value pairs using RouteValueDictionary and then merged into the parsed route pattern.

parameterPolicies
RouteValueDictionary

Additional parameter policies to associated with the route pattern. May be null. The provided object will be converted to key-value pairs using RouteValueDictionary and then merged into the parsed route pattern. Multiple policies can be specified for a key by providing a collection as the value.

requiredValues
RouteValueDictionary

Route values that can be substituted for parameters in the route pattern. See remarks on RequiredValues.

Returns

The RoutePattern.

Applies to

Parse(String)

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

Creates a RoutePattern from its string representation.

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePattern ^ Parse(System::String ^ pattern);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Parse (string pattern);
static member Parse : string -> Microsoft.AspNetCore.Routing.Patterns.RoutePattern
Public Shared Function Parse (pattern As String) As RoutePattern

Parameters

pattern
String

The route pattern string to parse.

Returns

The RoutePattern.

Applies to

Parse(String, RouteValueDictionary, RouteValueDictionary)

Source:
RoutePatternFactory.cs

Creates a RoutePattern from its string representation along with provided default values and parameter policies.

public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Parse (string pattern, Microsoft.AspNetCore.Routing.RouteValueDictionary? defaults, Microsoft.AspNetCore.Routing.RouteValueDictionary? parameterPolicies);
static member Parse : string * Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Routing.RouteValueDictionary -> Microsoft.AspNetCore.Routing.Patterns.RoutePattern
Public Shared Function Parse (pattern As String, defaults As RouteValueDictionary, parameterPolicies As RouteValueDictionary) As RoutePattern

Parameters

pattern
String

The route pattern string to parse.

defaults
RouteValueDictionary

Additional default values to associated with the route pattern. May be null. The provided object will be converted to key-value pairs using RouteValueDictionary and then merged into the parsed route pattern.

parameterPolicies
RouteValueDictionary

Additional parameter policies to associated with the route pattern. May be null. The provided object will be converted to key-value pairs using RouteValueDictionary and then merged into the parsed route pattern. Multiple policies can be specified for a key by providing a collection as the value.

Returns

The RoutePattern.

Applies to