共用方式為


RoutePatternFactory.Segment 方法

定義

多載

Segment(IEnumerable<RoutePatternPart>)

RoutePatternPathSegment從提供的元件集合建立 。

Segment(RoutePatternPart[])

RoutePatternPathSegment從提供的元件集合建立 。

Segment(IEnumerable<RoutePatternPart>)

來源:
RoutePatternFactory.cs
來源:
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[])

來源:
RoutePatternFactory.cs
來源:
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

適用於