Aracılığıyla paylaş


RoutePatternFactory.Constraint Yöntem

Tanım

Aşırı Yüklemeler

Constraint(IRouteConstraint)

Sağlanan kısıtlamadan bir RoutePatternParameterPolicyReference oluşturur.

Constraint(Object)

Sağlanan contraint'ten bir RoutePatternParameterPolicyReference oluşturur.

Constraint(String)

Sağlanan kısıtlamadan bir RoutePatternParameterPolicyReference oluşturur.

Constraint(IRouteConstraint)

Kaynak:
RoutePatternFactory.cs
Kaynak:
RoutePatternFactory.cs

Sağlanan kısıtlamadan bir RoutePatternParameterPolicyReference oluşturur.

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPolicyReference ^ Constraint(Microsoft::AspNetCore::Routing::IRouteConstraint ^ constraint);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference Constraint (Microsoft.AspNetCore.Routing.IRouteConstraint constraint);
static member Constraint : Microsoft.AspNetCore.Routing.IRouteConstraint -> Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference
Public Shared Function Constraint (constraint As IRouteConstraint) As RoutePatternParameterPolicyReference

Parametreler

constraint
IRouteConstraint

Constraint nesnesi.

Döndürülenler

RoutePatternParameterPolicyReference.

Şunlara uygulanır

Constraint(Object)

Kaynak:
RoutePatternFactory.cs
Kaynak:
RoutePatternFactory.cs

Sağlanan contraint'ten bir RoutePatternParameterPolicyReference oluşturur.

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPolicyReference ^ Constraint(System::Object ^ constraint);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference Constraint (object constraint);
static member Constraint : obj -> Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference
Public Shared Function Constraint (constraint As Object) As RoutePatternParameterPolicyReference

Parametreler

constraint
Object

veya Stringtüründe IRouteConstraint olması gereken kısıtlama nesnesi. Kısıtlama nesnesi bir String ise, bir örneğine RegexRouteConstraintdönüştürülür.

Döndürülenler

RoutePatternParameterPolicyReference.

Şunlara uygulanır

Constraint(String)

Kaynak:
RoutePatternFactory.cs
Kaynak:
RoutePatternFactory.cs

Sağlanan kısıtlamadan bir RoutePatternParameterPolicyReference oluşturur.

public:
 static Microsoft::AspNetCore::Routing::Patterns::RoutePatternParameterPolicyReference ^ Constraint(System::String ^ constraint);
public static Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference Constraint (string constraint);
static member Constraint : string -> Microsoft.AspNetCore.Routing.Patterns.RoutePatternParameterPolicyReference
Public Shared Function Constraint (constraint As String) As RoutePatternParameterPolicyReference

Parametreler

constraint
String

tarafından ParameterPolicyFactoryçözümlenecek kısıtlama metni.

Döndürülenler

RoutePatternParameterPolicyReference.

Şunlara uygulanır