Compartir a través de


Controller.View Método

Definición

Sobrecargas

View()

Crea un ViewResult objeto que representa una vista a la respuesta.

View(Object)

Crea un ViewResult objeto especificando que model la vista va a representar.

View(String)

Crea un ViewResult objeto especificando un viewNameobjeto .

View(String, Object)

Crea un ViewResult objeto especificando y viewName que model la vista va a representar.

View()

Source:
Controller.cs
Source:
Controller.cs
Source:
Controller.cs

Crea un ViewResult objeto que representa una vista a la respuesta.

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

Devoluciones

Objeto creado ViewResult para la respuesta.

Atributos

Se aplica a

View(Object)

Source:
Controller.cs
Source:
Controller.cs
Source:
Controller.cs

Crea un ViewResult objeto especificando que model la vista va a representar.

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

Parámetros

model
Object

Modelo presentado por la vista.

Devoluciones

Objeto creado ViewResult para la respuesta.

Atributos

Se aplica a

View(String)

Source:
Controller.cs
Source:
Controller.cs
Source:
Controller.cs

Crea un ViewResult objeto especificando un viewNameobjeto .

public:
 virtual Microsoft::AspNetCore::Mvc::ViewResult ^ View(System::String ^ viewName);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ViewResult View (string viewName);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ViewResult View (string? viewName);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member View : string -> Microsoft.AspNetCore.Mvc.ViewResult
override this.View : string -> Microsoft.AspNetCore.Mvc.ViewResult
Public Overridable Function View (viewName As String) As ViewResult

Parámetros

viewName
String

Nombre o ruta de acceso de la vista que se representa en la respuesta.

Devoluciones

Objeto creado ViewResult para la respuesta.

Atributos

Se aplica a

View(String, Object)

Source:
Controller.cs
Source:
Controller.cs
Source:
Controller.cs

Crea un ViewResult objeto especificando y viewName que model la vista va a representar.

public:
 virtual Microsoft::AspNetCore::Mvc::ViewResult ^ View(System::String ^ viewName, System::Object ^ model);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ViewResult View (string viewName, object model);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ViewResult View (string? viewName, object? model);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member View : string * obj -> Microsoft.AspNetCore.Mvc.ViewResult
override this.View : string * obj -> Microsoft.AspNetCore.Mvc.ViewResult
Public Overridable Function View (viewName As String, model As Object) As ViewResult

Parámetros

viewName
String

Nombre o ruta de acceso de la vista que se representa en la respuesta.

model
Object

Modelo presentado por la vista.

Devoluciones

Objeto creado ViewResult para la respuesta.

Atributos

Se aplica a