다음을 통해 공유


ControllerBase.Ok 메서드

정의

오버로드

Ok()

Status200OK 응답을 생성하는 OkResult 개체를 만듭니다.

Ok(Object)

Status200OK 응답을 생성하는 OkObjectResult 개체를 만듭니다.

Ok()

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

Status200OK 응답을 생성하는 OkResult 개체를 만듭니다.

public:
 virtual Microsoft::AspNetCore::Mvc::OkResult ^ Ok();
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.OkResult Ok ();
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Ok : unit -> Microsoft.AspNetCore.Mvc.OkResult
override this.Ok : unit -> Microsoft.AspNetCore.Mvc.OkResult
Public Overridable Function Ok () As OkResult

반환

응답에 대해 만든 OkResult.

특성

적용 대상

Ok(Object)

Source:
ControllerBase.cs
Source:
ControllerBase.cs
Source:
ControllerBase.cs

Status200OK 응답을 생성하는 OkObjectResult 개체를 만듭니다.

public:
 virtual Microsoft::AspNetCore::Mvc::OkObjectResult ^ Ok(System::Object ^ value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.OkObjectResult Ok (object value);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.OkObjectResult Ok (object? value);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member Ok : obj -> Microsoft.AspNetCore.Mvc.OkObjectResult
override this.Ok : obj -> Microsoft.AspNetCore.Mvc.OkObjectResult
Public Overridable Function Ok (value As Object) As OkObjectResult

매개 변수

value
Object

엔터티 본문에서 서식을 지정할 콘텐츠 값입니다.

반환

응답에 대해 만든 OkObjectResult.

특성

적용 대상