AcceptVerbsAttribute 클래스

정의

동작에서 지원하는 HTTP 메서드를 지정합니다.

public ref class AcceptVerbsAttribute sealed : Attribute, Microsoft::AspNetCore::Mvc::Routing::IActionHttpMethodProvider, Microsoft::AspNetCore::Mvc::Routing::IRouteTemplateProvider
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)]
public sealed class AcceptVerbsAttribute : Attribute, Microsoft.AspNetCore.Mvc.Routing.IActionHttpMethodProvider, Microsoft.AspNetCore.Mvc.Routing.IRouteTemplateProvider
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true, Inherited=true)>]
type AcceptVerbsAttribute = class
    inherit Attribute
    interface IActionHttpMethodProvider
    interface IRouteTemplateProvider
Public NotInheritable Class AcceptVerbsAttribute
Inherits Attribute
Implements IActionHttpMethodProvider, IRouteTemplateProvider
상속
AcceptVerbsAttribute
특성
구현

생성자

AcceptVerbsAttribute(String)

AcceptVerbsAttribute 클래스의 새 인스턴스를 초기화합니다.

AcceptVerbsAttribute(String[])

AcceptVerbsAttribute 클래스의 새 인스턴스를 초기화합니다.

속성

HttpMethods

동작에서 지원하는 HTTP 메서드를 가져옵니다.

Name

경로 이름을 가져옵니다. 경로 이름은 지정된 경로 값 집합에 따라 경로를 선택하는 대신 특정 경로를 사용하여 링크를 생성하는 데 사용할 수 있습니다.

Order

경로 순서를 가져옵니다. 순서는 경로 실행 순서를 결정합니다. 순서 값이 낮은 경로가 먼저 시도됩니다. 경로가 값을 지정하지 않으면 의 값을 가져오거나 가 컨트롤러에서 값을 Order 정의하지 않는 경우 RouteAttribute 기본값 0을 가져옵니다.

Route

경로 템플릿입니다. null일 수 있습니다.

명시적 인터페이스 구현

IRouteTemplateProvider.Order

경로 순서를 가져옵니다. 순서는 경로 실행 순서를 결정합니다. 순서 값이 낮은 경로가 먼저 시도됩니다. 경로가 값을 지정하지 않으면 기본값인 0을 가져옵니다. Order 속성의 null 값은 사용자가 경로에 대한 명시적 순서를 지정하지 않았음을 의미합니다.

IRouteTemplateProvider.Template

경로 템플릿입니다. null일 수 있습니다.

적용 대상