Share via


HttpMethodActionConstraint 클래스

정의

MVC가 레거시 IRouter 지원과 함께 사용될 때 HTTP 메서드 필터링을 적용하는 데 사용되는 의 IActionConstraint 구현입니다. 을 HttpMethodActionConstraint 사용하여 작업에서 지원하는 HTTP 메서드 집합을 확인할 수 있습니다.

public ref class HttpMethodActionConstraint : Microsoft::AspNetCore::Mvc::ActionConstraints::IActionConstraint
public class HttpMethodActionConstraint : Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint
type HttpMethodActionConstraint = class
    interface IActionConstraint
    interface IActionConstraintMetadata
Public Class HttpMethodActionConstraint
Implements IActionConstraint
상속
HttpMethodActionConstraint
구현

생성자

HttpMethodActionConstraint(IEnumerable<String>)

HttpMethodActionConstraint의 새 인스턴스를 만듭니다.

필드

HttpMethodConstraintOrder

에서 OrderHttpMethodActionConstraint사용하는 값입니다.

속성

HttpMethods

허용되는 HTTP 메서드 목록을 가져옵니다. 모든 HTTP 메서드가 허용되는 경우 빈 목록을 반환합니다.

Order

제약 조건 순서입니다.

메서드

Accept(ActionConstraintContext)

작업이 선택하기 위한 유효한 후보인지 여부를 결정합니다.

적용 대상