Controller.PartialView Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
PartialView(String, Object) |
Crea un PartialViewResult objeto especificando y |
PartialView(String) |
Crea un PartialViewResult objeto especificando un |
PartialView() |
Crea un PartialViewResult objeto que representa una vista parcial a la respuesta. |
PartialView(Object) |
Crea un PartialViewResult objeto especificando un |
PartialView(String, Object)
- Source:
- Controller.cs
- Source:
- Controller.cs
- Source:
- Controller.cs
Crea un PartialViewResult objeto especificando y viewName
que model
la vista parcial va a representar.
public:
virtual Microsoft::AspNetCore::Mvc::PartialViewResult ^ PartialView(System::String ^ viewName, System::Object ^ model);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PartialViewResult PartialView (string viewName, object model);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PartialViewResult PartialView (string? viewName, object? model);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PartialView : string * obj -> Microsoft.AspNetCore.Mvc.PartialViewResult
override this.PartialView : string * obj -> Microsoft.AspNetCore.Mvc.PartialViewResult
Public Overridable Function PartialView (viewName As String, model As Object) As PartialViewResult
Parámetros
- viewName
- String
Nombre o ruta de acceso de la vista parcial que se representa en la respuesta.
- model
- Object
Modelo representado por la vista parcial.
Devoluciones
Objeto creado PartialViewResult para la respuesta.
- Atributos
Se aplica a
PartialView(String)
- Source:
- Controller.cs
- Source:
- Controller.cs
- Source:
- Controller.cs
Crea un PartialViewResult objeto especificando un viewName
objeto .
public:
virtual Microsoft::AspNetCore::Mvc::PartialViewResult ^ PartialView(System::String ^ viewName);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PartialViewResult PartialView (string viewName);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PartialViewResult PartialView (string? viewName);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PartialView : string -> Microsoft.AspNetCore.Mvc.PartialViewResult
override this.PartialView : string -> Microsoft.AspNetCore.Mvc.PartialViewResult
Public Overridable Function PartialView (viewName As String) As PartialViewResult
Parámetros
- viewName
- String
Nombre o ruta de acceso de la vista parcial que se representa en la respuesta.
Devoluciones
Objeto creado PartialViewResult para la respuesta.
- Atributos
Se aplica a
PartialView()
- Source:
- Controller.cs
- Source:
- Controller.cs
- Source:
- Controller.cs
Crea un PartialViewResult objeto que representa una vista parcial a la respuesta.
public:
virtual Microsoft::AspNetCore::Mvc::PartialViewResult ^ PartialView();
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PartialViewResult PartialView ();
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PartialView : unit -> Microsoft.AspNetCore.Mvc.PartialViewResult
override this.PartialView : unit -> Microsoft.AspNetCore.Mvc.PartialViewResult
Public Overridable Function PartialView () As PartialViewResult
Devoluciones
Objeto creado PartialViewResult para la respuesta.
- Atributos
Se aplica a
PartialView(Object)
- Source:
- Controller.cs
- Source:
- Controller.cs
- Source:
- Controller.cs
Crea un PartialViewResult objeto especificando un model
objeto que se va a representar mediante la vista parcial.
public:
virtual Microsoft::AspNetCore::Mvc::PartialViewResult ^ PartialView(System::Object ^ model);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PartialViewResult PartialView (object model);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.PartialViewResult PartialView (object? model);
[<Microsoft.AspNetCore.Mvc.NonAction>]
abstract member PartialView : obj -> Microsoft.AspNetCore.Mvc.PartialViewResult
override this.PartialView : obj -> Microsoft.AspNetCore.Mvc.PartialViewResult
Public Overridable Function PartialView (model As Object) As PartialViewResult
Parámetros
- model
- Object
Modelo representado por la vista parcial.
Devoluciones
Objeto creado PartialViewResult para la respuesta.
- Atributos