Share via


RoutePatternFactory.Pattern Method

Definition

Overloads

Pattern(Object, Object, RoutePatternPathSegment[])

Creates a RoutePattern from a collection of segments along with provided default values and parameter policies.

Pattern(RoutePatternPathSegment[])

Creates a new instance of RoutePattern from a collection of segments.

Pattern(IEnumerable<RoutePatternPathSegment>)

Creates a new instance of RoutePattern from a collection of segments.

Pattern(String, RoutePatternPathSegment[])

Creates a new instance of RoutePattern from a collection of segments.

Pattern(String, IEnumerable<RoutePatternPathSegment>)

Creates a new instance of RoutePattern from a collection of segments.

Pattern(RouteValueDictionary, RouteValueDictionary, RoutePatternPathSegment[])

Creates a RoutePattern from a collection of segments along with provided default values and parameter policies.

Pattern(RouteValueDictionary, RouteValueDictionary, IEnumerable<RoutePatternPathSegment>)

Creates a RoutePattern from a collection of segments along with provided default values and parameter policies.

Pattern(Object, Object, IEnumerable<RoutePatternPathSegment>)

Creates a RoutePattern from a collection of segments along with provided default values and parameter policies.

Pattern(String, RouteValueDictionary, RouteValueDictionary, RoutePatternPathSegment[])

Creates a RoutePattern from a collection of segments along with provided default values and parameter policies.

Pattern(String, RouteValueDictionary, RouteValueDictionary, IEnumerable<RoutePatternPathSegment>)

Creates a RoutePattern from a collection of segments along with provided default values and parameter policies.

Pattern(String, Object, Object, RoutePatternPathSegment[])

Creates a RoutePattern from a collection of segments along with provided default values and parameter policies.

Pattern(String, Object, Object, IEnumerable<RoutePatternPathSegment>)

Creates a RoutePattern from a collection of segments along with provided default values and parameter policies.

Pattern(Object, Object, RoutePatternPathSegment[])

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

Creates a RoutePattern from a collection of segments along with provided default values and parameter policies.

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePattern ^ Pattern(System::Object ^ defaults, System::Object ^ parameterPolicies, ... cli::array <Microsoft::AspNetCore::Routing::Patterns::RoutePatternPathSegment ^> ^ segments);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern (object defaults, object parameterPolicies, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] segments);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern (object? defaults, object? parameterPolicies, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] segments);
static member Pattern : obj * obj * Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] -> Microsoft.AspNetCore.Routing.Patterns.RoutePattern
Public Shared Function Pattern (defaults As Object, parameterPolicies As Object, ParamArray segments As RoutePatternPathSegment()) As RoutePattern

Parameters

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 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 route pattern. Multiple policies can be specified for a key by providing a collection as the value.

segments
RoutePatternPathSegment[]

The collection of segments.

Returns

The RoutePattern.

Applies to

Pattern(RoutePatternPathSegment[])

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

Creates a new instance of RoutePattern from a collection of segments.

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePattern ^ Pattern(... cli::array <Microsoft::AspNetCore::Routing::Patterns::RoutePatternPathSegment ^> ^ segments);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern (params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] segments);
static member Pattern : Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] -> Microsoft.AspNetCore.Routing.Patterns.RoutePattern
Public Shared Function Pattern (ParamArray segments As RoutePatternPathSegment()) As RoutePattern

Parameters

segments
RoutePatternPathSegment[]

The collection of segments.

Returns

The RoutePattern.

Applies to

Pattern(IEnumerable<RoutePatternPathSegment>)

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

Creates a new instance of RoutePattern from a collection of segments.

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePattern ^ Pattern(System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Routing::Patterns::RoutePatternPathSegment ^> ^ segments);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern (System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment> segments);
static member Pattern : seq<Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment> -> Microsoft.AspNetCore.Routing.Patterns.RoutePattern
Public Shared Function Pattern (segments As IEnumerable(Of RoutePatternPathSegment)) As RoutePattern

Parameters

segments
IEnumerable<RoutePatternPathSegment>

The collection of segments.

Returns

The RoutePattern.

Applies to

Pattern(String, RoutePatternPathSegment[])

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

Creates a new instance of RoutePattern from a collection of segments.

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePattern ^ Pattern(System::String ^ rawText, ... cli::array <Microsoft::AspNetCore::Routing::Patterns::RoutePatternPathSegment ^> ^ segments);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern (string rawText, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] segments);
static member Pattern : string * Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] -> Microsoft.AspNetCore.Routing.Patterns.RoutePattern
Public Shared Function Pattern (rawText As String, ParamArray segments As RoutePatternPathSegment()) As RoutePattern

Parameters

rawText
String

The raw text to associate with the route pattern. May be null.

segments
RoutePatternPathSegment[]

The collection of segments.

Returns

The RoutePattern.

Applies to

Pattern(String, IEnumerable<RoutePatternPathSegment>)

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

Creates a new instance of RoutePattern from a collection of segments.

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePattern ^ Pattern(System::String ^ rawText, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Routing::Patterns::RoutePatternPathSegment ^> ^ segments);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern (string rawText, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment> segments);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern (string? rawText, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment> segments);
static member Pattern : string * seq<Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment> -> Microsoft.AspNetCore.Routing.Patterns.RoutePattern
Public Shared Function Pattern (rawText As String, segments As IEnumerable(Of RoutePatternPathSegment)) As RoutePattern

Parameters

rawText
String

The raw text to associate with the route pattern. May be null.

segments
IEnumerable<RoutePatternPathSegment>

The collection of segments.

Returns

The RoutePattern.

Applies to

Pattern(RouteValueDictionary, RouteValueDictionary, RoutePatternPathSegment[])

Source:
RoutePatternFactory.cs

Creates a RoutePattern from a collection of segments along with provided default values and parameter policies.

public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern (Microsoft.AspNetCore.Routing.RouteValueDictionary? defaults, Microsoft.AspNetCore.Routing.RouteValueDictionary? parameterPolicies, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] segments);
static member Pattern : Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] -> Microsoft.AspNetCore.Routing.Patterns.RoutePattern
Public Shared Function Pattern (defaults As RouteValueDictionary, parameterPolicies As RouteValueDictionary, ParamArray segments As RoutePatternPathSegment()) As RoutePattern

Parameters

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 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 route pattern. Multiple policies can be specified for a key by providing a collection as the value.

segments
RoutePatternPathSegment[]

The collection of segments.

Returns

The RoutePattern.

Applies to

Pattern(RouteValueDictionary, RouteValueDictionary, IEnumerable<RoutePatternPathSegment>)

Source:
RoutePatternFactory.cs

Creates a RoutePattern from a collection of segments along with provided default values and parameter policies.

public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern (Microsoft.AspNetCore.Routing.RouteValueDictionary? defaults, Microsoft.AspNetCore.Routing.RouteValueDictionary? parameterPolicies, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment> segments);
static member Pattern : Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Routing.RouteValueDictionary * seq<Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment> -> Microsoft.AspNetCore.Routing.Patterns.RoutePattern
Public Shared Function Pattern (defaults As RouteValueDictionary, parameterPolicies As RouteValueDictionary, segments As IEnumerable(Of RoutePatternPathSegment)) As RoutePattern

Parameters

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 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 route pattern. Multiple policies can be specified for a key by providing a collection as the value.

segments
IEnumerable<RoutePatternPathSegment>

The collection of segments.

Returns

The RoutePattern.

Applies to

Pattern(Object, Object, IEnumerable<RoutePatternPathSegment>)

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

Creates a RoutePattern from a collection of segments along with provided default values and parameter policies.

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePattern ^ Pattern(System::Object ^ defaults, System::Object ^ parameterPolicies, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Routing::Patterns::RoutePatternPathSegment ^> ^ segments);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern (object defaults, object parameterPolicies, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment> segments);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern (object? defaults, object? parameterPolicies, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment> segments);
static member Pattern : obj * obj * seq<Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment> -> Microsoft.AspNetCore.Routing.Patterns.RoutePattern
Public Shared Function Pattern (defaults As Object, parameterPolicies As Object, segments As IEnumerable(Of RoutePatternPathSegment)) As RoutePattern

Parameters

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 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 route pattern. Multiple policies can be specified for a key by providing a collection as the value.

segments
IEnumerable<RoutePatternPathSegment>

The collection of segments.

Returns

The RoutePattern.

Applies to

Pattern(String, RouteValueDictionary, RouteValueDictionary, RoutePatternPathSegment[])

Source:
RoutePatternFactory.cs

Creates a RoutePattern from a collection of segments along with provided default values and parameter policies.

public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern (string? rawText, Microsoft.AspNetCore.Routing.RouteValueDictionary? defaults, Microsoft.AspNetCore.Routing.RouteValueDictionary? parameterPolicies, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] segments);
static member Pattern : string * Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] -> Microsoft.AspNetCore.Routing.Patterns.RoutePattern
Public Shared Function Pattern (rawText As String, defaults As RouteValueDictionary, parameterPolicies As RouteValueDictionary, ParamArray segments As RoutePatternPathSegment()) As RoutePattern

Parameters

rawText
String

The raw text to associate with the route pattern.

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 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 route pattern. Multiple policies can be specified for a key by providing a collection as the value.

segments
RoutePatternPathSegment[]

The collection of segments.

Returns

The RoutePattern.

Applies to

Pattern(String, RouteValueDictionary, RouteValueDictionary, IEnumerable<RoutePatternPathSegment>)

Source:
RoutePatternFactory.cs

Creates a RoutePattern from a collection of segments along with provided default values and parameter policies.

public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern (string? rawText, Microsoft.AspNetCore.Routing.RouteValueDictionary? defaults, Microsoft.AspNetCore.Routing.RouteValueDictionary? parameterPolicies, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment> segments);
static member Pattern : string * Microsoft.AspNetCore.Routing.RouteValueDictionary * Microsoft.AspNetCore.Routing.RouteValueDictionary * seq<Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment> -> Microsoft.AspNetCore.Routing.Patterns.RoutePattern
Public Shared Function Pattern (rawText As String, defaults As RouteValueDictionary, parameterPolicies As RouteValueDictionary, segments As IEnumerable(Of RoutePatternPathSegment)) As RoutePattern

Parameters

rawText
String

The raw text to associate with the route pattern. May be null.

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 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 route pattern. Multiple policies can be specified for a key by providing a collection as the value.

segments
IEnumerable<RoutePatternPathSegment>

The collection of segments.

Returns

The RoutePattern.

Applies to

Pattern(String, Object, Object, RoutePatternPathSegment[])

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

Creates a RoutePattern from a collection of segments along with provided default values and parameter policies.

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePattern ^ Pattern(System::String ^ rawText, System::Object ^ defaults, System::Object ^ parameterPolicies, ... cli::array <Microsoft::AspNetCore::Routing::Patterns::RoutePatternPathSegment ^> ^ segments);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern (string rawText, object defaults, object parameterPolicies, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] segments);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern (string? rawText, object? defaults, object? parameterPolicies, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] segments);
static member Pattern : string * obj * obj * Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment[] -> Microsoft.AspNetCore.Routing.Patterns.RoutePattern
Public Shared Function Pattern (rawText As String, defaults As Object, parameterPolicies As Object, ParamArray segments As RoutePatternPathSegment()) As RoutePattern

Parameters

rawText
String

The raw text to associate with the route pattern.

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 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 route pattern. Multiple policies can be specified for a key by providing a collection as the value.

segments
RoutePatternPathSegment[]

The collection of segments.

Returns

The RoutePattern.

Applies to

Pattern(String, Object, Object, IEnumerable<RoutePatternPathSegment>)

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

Creates a RoutePattern from a collection of segments along with provided default values and parameter policies.

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePattern ^ Pattern(System::String ^ rawText, System::Object ^ defaults, System::Object ^ parameterPolicies, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Routing::Patterns::RoutePatternPathSegment ^> ^ segments);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern (string rawText, object defaults, object parameterPolicies, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment> segments);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePattern Pattern (string? rawText, object? defaults, object? parameterPolicies, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment> segments);
static member Pattern : string * obj * obj * seq<Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment> -> Microsoft.AspNetCore.Routing.Patterns.RoutePattern
Public Shared Function Pattern (rawText As String, defaults As Object, parameterPolicies As Object, segments As IEnumerable(Of RoutePatternPathSegment)) As RoutePattern

Parameters

rawText
String

The raw text to associate with the route pattern. May be null.

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 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 route pattern. Multiple policies can be specified for a key by providing a collection as the value.

segments
IEnumerable<RoutePatternPathSegment>

The collection of segments.

Returns

The RoutePattern.

Applies to