C# 클래스 NSwag.Annotations.ResponseTypeAttribute

상속: System.Attribute
파일 보기 프로젝트 열기: NSwag/NSwag

공개 메소드들

메소드 설명
ResponseTypeAttribute ( HttpStatusCode httpStatusCode, Type responseType ) : System

Initializes a new instance of the SwaggerResponseAttribute class.

ResponseTypeAttribute ( Type responseType ) : System

Initializes a new instance of the ResponseTypeAttribute class.

ResponseTypeAttribute ( int httpStatusCode, Type responseType ) : System

Initializes a new instance of the SwaggerResponseAttribute class.

ResponseTypeAttribute ( string httpStatusCode, Type responseType ) : System

Initializes a new instance of the ResponseTypeAttribute class.

메소드 상세

ResponseTypeAttribute() 공개 메소드

Initializes a new instance of the SwaggerResponseAttribute class.
public ResponseTypeAttribute ( HttpStatusCode httpStatusCode, Type responseType ) : System
httpStatusCode HttpStatusCode The HTTP status code for which the result type applies.
responseType System.Type The JSON result type of the MVC or Web API action method.
리턴 System

ResponseTypeAttribute() 공개 메소드

Initializes a new instance of the ResponseTypeAttribute class.
public ResponseTypeAttribute ( Type responseType ) : System
responseType System.Type The JSON result type of the MVC or Web API action method.
리턴 System

ResponseTypeAttribute() 공개 메소드

Initializes a new instance of the SwaggerResponseAttribute class.
public ResponseTypeAttribute ( int httpStatusCode, Type responseType ) : System
httpStatusCode int The HTTP status code for which the result type applies.
responseType System.Type The JSON result type of the MVC or Web API action method.
리턴 System

ResponseTypeAttribute() 공개 메소드

Initializes a new instance of the ResponseTypeAttribute class.
public ResponseTypeAttribute ( string httpStatusCode, Type responseType ) : System
httpStatusCode string The HTTP status code for which the result type applies.
responseType System.Type The JSON result type of the MVC or Web API action method.
리턴 System