RoutePatternFactory.Segment 方法

定义

重载

Segment(IEnumerable<RoutePatternPart>)

RoutePatternPathSegment从提供的部件集合创建 。

Segment(RoutePatternPart[])

RoutePatternPathSegment从提供的部件集合创建 。

Segment(IEnumerable<RoutePatternPart>)

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

RoutePatternPathSegment从提供的部件集合创建 。

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePatternPathSegment ^ Segment(System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Routing::Patterns::RoutePatternPart ^> ^ parts);
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

参数

parts
IEnumerable<RoutePatternPart>

部件的集合。

返回

RoutePatternPathSegment

适用于

Segment(RoutePatternPart[])

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

RoutePatternPathSegment从提供的部件集合创建 。

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePatternPathSegment ^ Segment(... cli::array <Microsoft::AspNetCore::Routing::Patterns::RoutePatternPart ^> ^ parts);
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

参数

parts
RoutePatternPart[]

部件的集合。

返回

RoutePatternPathSegment

适用于