RoutePatternFactory.Pattern 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Pattern(Object, Object, RoutePatternPathSegment[])
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
RoutePattern从段集合以及提供的默认值和参数策略创建 。
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
参数
- defaults
- Object
要与路由模式关联的其他默认值。 可能为 null。 提供的 对象将使用 转换为键值对 RouteValueDictionary ,然后合并到路由模式中。
- parameterPolicies
- Object
要与路由模式关联的其他参数策略。 可能为 null。 提供的 对象将使用 转换为键值对 RouteValueDictionary ,然后合并到路由模式中。 可以通过提供集合作为 值,为键指定多个策略。
- segments
- RoutePatternPathSegment[]
段的集合。
返回
适用于
Pattern(RoutePatternPathSegment[])
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
从段集合创建 的新 RoutePattern 实例。
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
参数
- segments
- RoutePatternPathSegment[]
段的集合。
返回
适用于
Pattern(IEnumerable<RoutePatternPathSegment>)
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
从段集合创建 的新 RoutePattern 实例。
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
参数
- segments
- IEnumerable<RoutePatternPathSegment>
段的集合。
返回
适用于
Pattern(String, RoutePatternPathSegment[])
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
从段集合创建 的新 RoutePattern 实例。
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
参数
- rawText
- String
要与路由模式关联的原始文本。 可能为 null。
- segments
- RoutePatternPathSegment[]
段的集合。
返回
适用于
Pattern(String, IEnumerable<RoutePatternPathSegment>)
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
从段集合创建 的新 RoutePattern 实例。
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
参数
- rawText
- String
要与路由模式关联的原始文本。 可能为 null。
- segments
- IEnumerable<RoutePatternPathSegment>
段的集合。
返回
适用于
Pattern(RouteValueDictionary, RouteValueDictionary, RoutePatternPathSegment[])
- Source:
- RoutePatternFactory.cs
RoutePattern从段集合以及提供的默认值和参数策略创建 。
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
参数
- defaults
- RouteValueDictionary
要与路由模式关联的其他默认值。 可能为 null。 提供的 对象将使用 转换为键值对 RouteValueDictionary ,然后合并到路由模式中。
- parameterPolicies
- RouteValueDictionary
要与路由模式关联的其他参数策略。 可能为 null。 提供的 对象将使用 转换为键值对 RouteValueDictionary ,然后合并到路由模式中。 可以通过提供集合作为 值,为键指定多个策略。
- segments
- RoutePatternPathSegment[]
段的集合。
返回
适用于
Pattern(RouteValueDictionary, RouteValueDictionary, IEnumerable<RoutePatternPathSegment>)
- Source:
- RoutePatternFactory.cs
RoutePattern从段集合以及提供的默认值和参数策略创建 。
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
参数
- defaults
- RouteValueDictionary
要与路由模式关联的其他默认值。 可能为 null。 提供的 对象将使用 转换为键值对 RouteValueDictionary ,然后合并到路由模式中。
- parameterPolicies
- RouteValueDictionary
要与路由模式关联的其他参数策略。 可能为 null。 提供的 对象将使用 转换为键值对 RouteValueDictionary ,然后合并到路由模式中。 可以通过提供集合作为 值,为键指定多个策略。
- segments
- IEnumerable<RoutePatternPathSegment>
段的集合。
返回
适用于
Pattern(Object, Object, IEnumerable<RoutePatternPathSegment>)
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
RoutePattern从段集合以及提供的默认值和参数策略创建 。
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
参数
- defaults
- Object
要与路由模式关联的其他默认值。 可能为 null。 提供的 对象将使用 转换为键值对 RouteValueDictionary ,然后合并到路由模式中。
- parameterPolicies
- Object
要与路由模式关联的其他参数策略。 可能为 null。 提供的 对象将使用 转换为键值对 RouteValueDictionary ,然后合并到路由模式中。 可以通过提供集合作为 值,为键指定多个策略。
- segments
- IEnumerable<RoutePatternPathSegment>
段的集合。
返回
适用于
Pattern(String, RouteValueDictionary, RouteValueDictionary, RoutePatternPathSegment[])
- Source:
- RoutePatternFactory.cs
RoutePattern从段集合以及提供的默认值和参数策略创建 。
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
参数
- rawText
- String
要与路由模式关联的原始文本。
- defaults
- RouteValueDictionary
要与路由模式关联的其他默认值。 可能为 null。 提供的 对象将使用 转换为键值对 RouteValueDictionary ,然后合并到路由模式中。
- parameterPolicies
- RouteValueDictionary
要与路由模式关联的其他参数策略。 可能为 null。 提供的 对象将使用 转换为键值对 RouteValueDictionary ,然后合并到路由模式中。 可以通过提供集合作为 值,为键指定多个策略。
- segments
- RoutePatternPathSegment[]
段的集合。
返回
适用于
Pattern(String, RouteValueDictionary, RouteValueDictionary, IEnumerable<RoutePatternPathSegment>)
- Source:
- RoutePatternFactory.cs
RoutePattern从段集合以及提供的默认值和参数策略创建 。
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
参数
- rawText
- String
要与路由模式关联的原始文本。 可能为 null。
- defaults
- RouteValueDictionary
要与路由模式关联的其他默认值。 可能为 null。 提供的 对象将使用 转换为键值对 RouteValueDictionary ,然后合并到路由模式中。
- parameterPolicies
- RouteValueDictionary
要与路由模式关联的其他参数策略。 可能为 null。 提供的 对象将使用 转换为键值对 RouteValueDictionary ,然后合并到路由模式中。 可以通过提供集合作为 值,为键指定多个策略。
- segments
- IEnumerable<RoutePatternPathSegment>
段的集合。
返回
适用于
Pattern(String, Object, Object, RoutePatternPathSegment[])
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
RoutePattern从段集合以及提供的默认值和参数策略创建 。
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
参数
- rawText
- String
要与路由模式关联的原始文本。
- defaults
- Object
要与路由模式关联的其他默认值。 可能为 null。 提供的 对象将使用 转换为键值对 RouteValueDictionary ,然后合并到路由模式中。
- parameterPolicies
- Object
要与路由模式关联的其他参数策略。 可能为 null。 提供的 对象将使用 转换为键值对 RouteValueDictionary ,然后合并到路由模式中。 可以通过提供集合作为 值,为键指定多个策略。
- segments
- RoutePatternPathSegment[]
段的集合。
返回
适用于
Pattern(String, Object, Object, IEnumerable<RoutePatternPathSegment>)
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
RoutePattern从段集合以及提供的默认值和参数策略创建 。
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
参数
- rawText
- String
要与路由模式关联的原始文本。 可能为 null。
- defaults
- Object
要与路由模式关联的其他默认值。 可能为 null。 提供的 对象将使用 转换为键值对 RouteValueDictionary ,然后合并到路由模式中。
- parameterPolicies
- Object
要与路由模式关联的其他参数策略。 可能为 null。 提供的 对象将使用 转换为键值对 RouteValueDictionary ,然后合并到路由模式中。 可以通过提供集合作为 值,为键指定多个策略。
- segments
- IEnumerable<RoutePatternPathSegment>
段的集合。