C# 클래스 CustomActionResult, code

Customized ActionResult that allows easily setting HttpStatusCode and data result object to be returned for a request.
상속: ActionResult
파일 보기 프로젝트 열기: shendongnian/code 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
CustomActionResult ( ) : Microsoft.AspNetCore.Mvc

Parameterless contructor that initializes the ActionResult with HttpStatusCode.OK as the default Response Code.

CustomActionResult ( HttpStatusCode, statusCode ) : Microsoft.AspNetCore.Mvc

Constructor that initializes the ActionResult with a specified HttpStatusCode

CustomActionResult ( HttpStatusCode, statusCode, string message ) : Microsoft.AspNetCore.Mvc

Constructor that initializes the ActionResult with a specified HttpStatusCode

ExecuteResult ( ActionContext, context ) : void
GetBuffer ( ) : byte[]

메소드 상세

CustomActionResult() 공개 메소드

Parameterless contructor that initializes the ActionResult with HttpStatusCode.OK as the default Response Code.
public CustomActionResult ( ) : Microsoft.AspNetCore.Mvc
리턴 Microsoft.AspNetCore.Mvc

CustomActionResult() 공개 메소드

Constructor that initializes the ActionResult with a specified HttpStatusCode
public CustomActionResult ( HttpStatusCode, statusCode ) : Microsoft.AspNetCore.Mvc
statusCode HttpStatusCode, /// Http response code to set for this ActionResult. ///
리턴 Microsoft.AspNetCore.Mvc

CustomActionResult() 공개 메소드

Constructor that initializes the ActionResult with a specified HttpStatusCode
public CustomActionResult ( HttpStatusCode, statusCode, string message ) : Microsoft.AspNetCore.Mvc
statusCode HttpStatusCode, /// Http response code to set for this ActionResult. ///
message string Reason phrase
리턴 Microsoft.AspNetCore.Mvc

ExecuteResult() 공개 메소드

public ExecuteResult ( ActionContext, context ) : void
context ActionContext,
리턴 void

GetBuffer() 공개 메소드

public GetBuffer ( ) : byte[]
리턴 byte[]