Język

ContentViewComponentResult Klasa

Definicja

Element IViewComponentResult , który zapisuje tekst po wykonaniu.

public ref class ContentViewComponentResult : Microsoft::AspNetCore::Mvc::IViewComponentResult
public class ContentViewComponentResult : Microsoft.AspNetCore.Mvc.IViewComponentResult
type ContentViewComponentResult = class
    interface IViewComponentResult
Public Class ContentViewComponentResult
Implements IViewComponentResult
Dziedziczenie
ContentViewComponentResult
Implementuje

Uwagi

Podana zawartość zostanie zakodowana w formacie HTML podczas zapisywania. Aby napisać wstępnie zakodowaną zawartość, użyj elementu HtmlContentViewComponentResult.

Konstruktory

Nazwa Opis
ContentViewComponentResult(String)

Inicjuje nowy ContentViewComponentResultelement .

Właściwości

Nazwa Opis
Content

Pobiera zawartość.

Metody

Nazwa Opis
Execute(ViewComponentContext)

Koduje i zapisuje element Content.

ExecuteAsync(ViewComponentContext)

Koduje i zapisuje element Content.

Dotyczy