CompiledViewDescriptor.ViewAttribute Property

Definition

Caution

Use Item instead. RazorViewAttribute has been superseded by RazorCompiledItem and will not be used by the runtime.

Gets or sets the RazorViewAttribute decorating the view.

C#
public Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute ViewAttribute { get; set; }
C#
[System.Obsolete("Use Item instead. RazorViewAttribute has been superseded by RazorCompiledItem and will not be used by the runtime.")]
public Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute ViewAttribute { get; set; }
C#
[System.Obsolete("Use Item instead. RazorViewAttribute has been superseded by RazorCompiledItem and will not be used by the runtime.")]
public Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute? ViewAttribute { get; set; }

Property Value

Attributes

Remarks

May be null.

Applies to

Product Versions (Obsolete)
ASP.NET Core 2.0, 2.1, 2.2 (3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0)