共用方式為


ParameterPolicyFactory.Create 方法

定義

多載

Create(RoutePatternParameterPart, IParameterPolicy)

建立參數原則。

Create(RoutePatternParameterPart, RoutePatternParameterPolicyReference)

建立參數原則。

Create(RoutePatternParameterPart, String)

建立參數原則。

Create(RoutePatternParameterPart, IParameterPolicy)

來源:
ParameterPolicyFactory.cs
來源:
ParameterPolicyFactory.cs

建立參數原則。

public:
 abstract Microsoft::AspNetCore::Routing::IParameterPolicy ^ Create(Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPart ^ parameter, Microsoft::AspNetCore::Routing::IParameterPolicy ^ parameterPolicy);
public abstract Microsoft.AspNetCore.Routing.IParameterPolicy Create (Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart parameter, Microsoft.AspNetCore.Routing.IParameterPolicy parameterPolicy);
public abstract Microsoft.AspNetCore.Routing.IParameterPolicy Create (Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart? parameter, Microsoft.AspNetCore.Routing.IParameterPolicy parameterPolicy);
abstract member Create : Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart * Microsoft.AspNetCore.Routing.IParameterPolicy -> Microsoft.AspNetCore.Routing.IParameterPolicy
Public MustOverride Function Create (parameter As RoutePatternParameterPart, parameterPolicy As IParameterPolicy) As IParameterPolicy

參數

parameter
RoutePatternParameterPart

要為其建立參數原則的參數。

parameterPolicy
IParameterPolicy

現有的參數原則。

傳回

IParameterPolicy參數的 。

適用於

Create(RoutePatternParameterPart, RoutePatternParameterPolicyReference)

來源:
ParameterPolicyFactory.cs
來源:
ParameterPolicyFactory.cs

建立參數原則。

public:
 Microsoft::AspNetCore::Routing::IParameterPolicy ^ Create(Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPart ^ parameter, Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPolicyReference ^ reference);
public Microsoft.AspNetCore.Routing.IParameterPolicy Create (Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart parameter, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference reference);
public Microsoft.AspNetCore.Routing.IParameterPolicy Create (Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart? parameter, Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference reference);
member this.Create : Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart * Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference -> Microsoft.AspNetCore.Routing.IParameterPolicy
Public Function Create (parameter As RoutePatternParameterPart, reference As RoutePatternParameterPolicyReference) As IParameterPolicy

參數

parameter
RoutePatternParameterPart

要為其建立參數原則的參數。

reference
RoutePatternParameterPolicyReference

要解析的參考。

傳回

IParameterPolicy參數的 。

適用於

Create(RoutePatternParameterPart, String)

來源:
ParameterPolicyFactory.cs
來源:
ParameterPolicyFactory.cs

建立參數原則。

public:
 abstract Microsoft::AspNetCore::Routing::IParameterPolicy ^ Create(Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPart ^ parameter, System::String ^ inlineText);
public abstract Microsoft.AspNetCore.Routing.IParameterPolicy Create (Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart parameter, string inlineText);
public abstract Microsoft.AspNetCore.Routing.IParameterPolicy Create (Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart? parameter, string inlineText);
abstract member Create : Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPart * string -> Microsoft.AspNetCore.Routing.IParameterPolicy
Public MustOverride Function Create (parameter As RoutePatternParameterPart, inlineText As String) As IParameterPolicy

參數

parameter
RoutePatternParameterPart

要為其建立參數原則的參數。

inlineText
String

要解析的內嵌文字。

傳回

IParameterPolicy參數的 。

適用於