RoutePatternFactory.Segment Method
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.
Segment(IEnumerable<RoutePatternPart>) |
Creates a RoutePatternPathSegment from the provided collection of parts. |
Segment(RoutePatternPart[]) |
Creates a RoutePatternPathSegment from the provided collection of parts. |
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
Creates a RoutePatternPathSegment from the provided collection of parts.
public:
static Microsoft::AspNetCore::Routing::Patterns::RoutePatternPathSegment ^ Segment(System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Routing::Patterns::RoutePatternPart ^> ^ parts);
C#
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment Segment (System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Patterns.RoutePatternPart> parts);
static member Segment : seq<Microsoft.AspNetCore.Routing.Patterns.RoutePatternPart> -> Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment
Public Shared Function Segment (parts As IEnumerable(Of RoutePatternPart)) As RoutePatternPathSegment
Parameters
- parts
- IEnumerable<RoutePatternPart>
The collection of parts.
Returns
Applies to
ASP.NET Core 9.0 and other versions
Product | Versions |
---|---|
ASP.NET Core | 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
Creates a RoutePatternPathSegment from the provided collection of parts.
public:
static Microsoft::AspNetCore::Routing::Patterns::RoutePatternPathSegment ^ Segment(... cli::array <Microsoft::AspNetCore::Routing::Patterns::RoutePatternPart ^> ^ parts);
C#
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment Segment (params Microsoft.AspNetCore.Routing.Patterns.RoutePatternPart[] parts);
static member Segment : Microsoft.AspNetCore.Routing.Patterns.RoutePatternPart[] -> Microsoft.AspNetCore.Routing.Patterns.RoutePatternPathSegment
Public Shared Function Segment (ParamArray parts As RoutePatternPart()) As RoutePatternPathSegment
Parameters
- parts
- RoutePatternPart[]
The collection of parts.
Returns
Applies to
ASP.NET Core 9.0 and other versions
Product | Versions |
---|---|
ASP.NET Core | 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |