RoutePatternFactory.ParameterPart 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ParameterPart(String) |
RoutePatternParameterPart根据提供的参数名称创建 。 |
ParameterPart(String, Object) |
RoutePatternParameterPart从提供的参数名称和默认值创建 。 |
ParameterPart(String, Object, RoutePatternParameterKind) |
RoutePatternParameterPart根据提供的参数名称和默认值以及参数类型创建 。 |
ParameterPart(String, Object, RoutePatternParameterKind, RoutePatternParameterPolicyReference[]) |
RoutePatternParameterPart根据提供的参数名称和默认值、参数类型和参数策略创建 。 |
ParameterPart(String, Object, RoutePatternParameterKind, IEnumerable<RoutePatternParameterPolicyReference>) |
RoutePatternParameterPart根据提供的参数名称和默认值、参数类型和参数策略创建 。 |
ParameterPart(String)
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
RoutePatternParameterPart根据提供的参数名称创建 。
public:
static Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPart ^ ParameterPart(System::String ^ parameterName);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart (string parameterName);
static member ParameterPart : string -> Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart
Public Shared Function ParameterPart (parameterName As String) As RoutePatternParameterPart
参数
- parameterName
- String
参数名称。
返回
适用于
ParameterPart(String, Object)
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
RoutePatternParameterPart从提供的参数名称和默认值创建 。
public:
static Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPart ^ ParameterPart(System::String ^ parameterName, System::Object ^ default);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart (string parameterName, object default);
static member ParameterPart : string * obj -> Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart
Public Shared Function ParameterPart (parameterName As String, default As Object) As RoutePatternParameterPart
参数
- parameterName
- String
参数名称。
- default
- Object
参数默认值。 可为 null
。
返回
适用于
ParameterPart(String, Object, RoutePatternParameterKind)
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
RoutePatternParameterPart根据提供的参数名称和默认值以及参数类型创建 。
public:
static Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPart ^ ParameterPart(System::String ^ parameterName, System::Object ^ default, Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterKind parameterKind);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart (string parameterName, object default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart (string parameterName, object? default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind);
static member ParameterPart : string * obj * Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind -> Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart
Public Shared Function ParameterPart (parameterName As String, default As Object, parameterKind As RoutePatternParameterKind) As RoutePatternParameterPart
参数
- parameterName
- String
参数名称。
- default
- Object
参数默认值。 可为 null
。
- parameterKind
- RoutePatternParameterKind
参数类型。
返回
适用于
ParameterPart(String, Object, RoutePatternParameterKind, RoutePatternParameterPolicyReference[])
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
RoutePatternParameterPart根据提供的参数名称和默认值、参数类型和参数策略创建 。
public:
static Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPart ^ ParameterPart(System::String ^ parameterName, System::Object ^ default, Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterKind parameterKind, ... cli::array <Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPolicyReference ^> ^ parameterPolicies);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart (string parameterName, object default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference[] parameterPolicies);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart (string parameterName, object? default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind, params Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference[] parameterPolicies);
static member ParameterPart : string * obj * Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind * Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference[] -> Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart
Public Shared Function ParameterPart (parameterName As String, default As Object, parameterKind As RoutePatternParameterKind, ParamArray parameterPolicies As RoutePatternParameterPolicyReference()) As RoutePatternParameterPart
参数
- parameterName
- String
参数名称。
- default
- Object
参数默认值。 可为 null
。
- parameterKind
- RoutePatternParameterKind
参数类型。
- parameterPolicies
- RoutePatternParameterPolicyReference[]
要与 参数关联的参数策略。
返回
适用于
ParameterPart(String, Object, RoutePatternParameterKind, IEnumerable<RoutePatternParameterPolicyReference>)
- Source:
- RoutePatternFactory.cs
- Source:
- RoutePatternFactory.cs
RoutePatternParameterPart根据提供的参数名称和默认值、参数类型和参数策略创建 。
public:
static Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPart ^ ParameterPart(System::String ^ parameterName, System::Object ^ default, Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterKind parameterKind, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPolicyReference ^> ^ parameterPolicies);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart (string parameterName, object default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference> parameterPolicies);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart ParameterPart (string parameterName, object? default, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind parameterKind, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference> parameterPolicies);
static member ParameterPart : string * obj * Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterKind * seq<Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference> -> Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart
Public Shared Function ParameterPart (parameterName As String, default As Object, parameterKind As RoutePatternParameterKind, parameterPolicies As IEnumerable(Of RoutePatternParameterPolicyReference)) As RoutePatternParameterPart
参数
- parameterName
- String
参数名称。
- default
- Object
参数默认值。 可为 null
。
- parameterKind
- RoutePatternParameterKind
参数类型。
- parameterPolicies
- IEnumerable<RoutePatternParameterPolicyReference>
要与 参数关联的参数策略。