다음을 통해 공유


RoutePatternFactory.Constraint 메서드

정의

오버로드

Constraint(IRouteConstraint)

RoutePatternParameterPolicyReference 제공된 제약 조건에서 를 만듭니다.

Constraint(Object)

RoutePatternParameterPolicyReference 제공된 contraint에서 을 만듭니다.

Constraint(String)

RoutePatternParameterPolicyReference 제공된 제약 조건에서 를 만듭니다.

Constraint(IRouteConstraint)

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

RoutePatternParameterPolicyReference 제공된 제약 조건에서 를 만듭니다.

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

매개 변수

constraint
IRouteConstraint

제약 조건 개체입니다.

반환

RoutePatternParameterPolicyReference

적용 대상

Constraint(Object)

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

RoutePatternParameterPolicyReference 제공된 contraint에서 을 만듭니다.

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

매개 변수

constraint
Object

또는 형식 IRouteConstraintString이어야 하는 제약 조건 개체입니다. 제약 조건 개체가 이 String 면 의 instance RegexRouteConstraint변환됩니다.

반환

RoutePatternParameterPolicyReference

적용 대상

Constraint(String)

Source:
RoutePatternFactory.cs
Source:
RoutePatternFactory.cs

RoutePatternParameterPolicyReference 제공된 제약 조건에서 를 만듭니다.

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

매개 변수

constraint
String

에서 확인할 ParameterPolicyFactory제약 조건 텍스트입니다.

반환

RoutePatternParameterPolicyReference

적용 대상