RoutePatternFactory.Segment 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Segment(IEnumerable<RoutePatternPart>) |
RoutePatternPathSegment從提供的元件集合建立 。 |
Segment(RoutePatternPart[]) |
RoutePatternPathSegment從提供的元件集合建立 。 |
Segment(IEnumerable<RoutePatternPart>)
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>
元件的集合。
傳回
適用於
Segment(RoutePatternPart[])
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[]
元件的集合。