Compartir a través de


HtmlHelper.PartialAsync(String, Object, ViewDataDictionary) Método

Definición

Devuelve el marcado HTML de la vista parcial especificada.

public:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Html::IHtmlContent ^> ^ PartialAsync(System::String ^ partialViewName, System::Object ^ model, Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary ^ viewData);
public System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> PartialAsync (string partialViewName, object model, Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData);
abstract member PartialAsync : string * obj * Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>
override this.PartialAsync : string * obj * Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>
Public Function PartialAsync (partialViewName As String, model As Object, viewData As ViewDataDictionary) As Task(Of IHtmlContent)

Parámetros

partialViewName
String

Nombre de la vista parcial usada para crear el marcado HTML. No debe ser null.

model
Object

Modelo que se va a pasar a la vista parcial.

viewData
ViewDataDictionary

ViewDataDictionary que se va a pasar a la vista parcial.

Devoluciones

Que Task al finalizar devuelve una nueva IHtmlContent instancia que contiene el CÓDIGO HTML creado.

Implementaciones

Se aplica a