RazorPageBase.Write Method

Definition

Overloads

Write(Object)

Writes the specified value with HTML encoding to Output.

Write(String)

Writes the specified value with HTML encoding to Output.

Write(Object)

Source:
RazorPageBase.cs
Source:
RazorPageBase.cs
Source:
RazorPageBase.cs

Writes the specified value with HTML encoding to Output.

C#
public virtual void Write (object value);
C#
public virtual void Write (object? value);

Parameters

value
Object

The Object to write.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

Write(String)

Source:
RazorPageBase.cs
Source:
RazorPageBase.cs
Source:
RazorPageBase.cs

Writes the specified value with HTML encoding to Output.

C#
public virtual void Write (string value);
C#
public virtual void Write (string? value);

Parameters

value
String

The String to write.

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0