Compartilhar via


ParameterPolicyFactory.Create Método

Definição

Sobrecargas

Create(RoutePatternParameterPart, IParameterPolicy)

Cria uma política de parâmetro.

Create(RoutePatternParameterPart, RoutePatternParameterPolicyReference)

Cria uma política de parâmetro.

Create(RoutePatternParameterPart, String)

Cria uma política de parâmetro.

Create(RoutePatternParameterPart, IParameterPolicy)

Origem:
ParameterPolicyFactory.cs
Origem:
ParameterPolicyFactory.cs

Cria uma política de parâmetro.

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

Parâmetros

parameter
RoutePatternParameterPart

O parâmetro para o qual a política de parâmetro está sendo criada.

parameterPolicy
IParameterPolicy

Uma política de parâmetro existente.

Retornos

O IParameterPolicy para o parâmetro .

Aplica-se a

Create(RoutePatternParameterPart, RoutePatternParameterPolicyReference)

Origem:
ParameterPolicyFactory.cs
Origem:
ParameterPolicyFactory.cs

Cria uma política de parâmetro.

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

Parâmetros

parameter
RoutePatternParameterPart

O parâmetro para o qual a política de parâmetro está sendo criada.

reference
RoutePatternParameterPolicyReference

A referência a resolve.

Retornos

O IParameterPolicy para o parâmetro .

Aplica-se a

Create(RoutePatternParameterPart, String)

Origem:
ParameterPolicyFactory.cs
Origem:
ParameterPolicyFactory.cs

Cria uma política de parâmetro.

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

Parâmetros

parameter
RoutePatternParameterPart

O parâmetro para o qual a política de parâmetro está sendo criada.

inlineText
String

O texto embutido a ser resolve.

Retornos

O IParameterPolicy para o parâmetro .

Aplica-se a