ParameterPolicyFactory.Create 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Create(RoutePatternParameterPart, IParameterPolicy) |
建立參數原則。 |
Create(RoutePatternParameterPart, RoutePatternParameterPolicyReference) |
建立參數原則。 |
Create(RoutePatternParameterPart, String) |
建立參數原則。 |
Create(RoutePatternParameterPart, IParameterPolicy)
建立參數原則。
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)
建立參數原則。
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)
建立參數原則。
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參數的 。