CompiledViewDescriptor Constructors

Definition

Overloads

CompiledViewDescriptor()

Source:
CompiledViewDescriptor.cs
Source:
CompiledViewDescriptor.cs
Source:
CompiledViewDescriptor.cs

Creates a new CompiledViewDescriptor.

C#
public CompiledViewDescriptor ();

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

CompiledViewDescriptor(RazorCompiledItem)

Source:
CompiledViewDescriptor.cs

Creates a new CompiledViewDescriptor.

C#
public CompiledViewDescriptor (Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItem item);

Parameters

Applies to

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

CompiledViewDescriptor(RazorCompiledItem, RazorViewAttribute)

Source:
CompiledViewDescriptor.cs
Source:
CompiledViewDescriptor.cs
Source:
CompiledViewDescriptor.cs

Creates a new CompiledViewDescriptor. At least one of attribute or item must be non-null.

C#
public CompiledViewDescriptor (Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItem item, Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute attribute);

Parameters

Applies to

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