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

ContentViewComponentResult(String)

Inicjuje nowy ContentViewComponentResultelement .

Właściwości

Content

Pobiera zawartość.

Metody

Execute(ViewComponentContext)

Koduje i zapisuje element Content.

ExecuteAsync(ViewComponentContext)

Koduje i zapisuje element Content.

Dotyczy