CompiledViewDescriptor.ViewAttribute 属性

定义

注意

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

获取或设置 RazorViewAttribute 修饰视图的 。

public:
 property Microsoft::AspNetCore::Mvc::Razor::Compilation::RazorViewAttribute ^ ViewAttribute { Microsoft::AspNetCore::Mvc::Razor::Compilation::RazorViewAttribute ^ get(); void set(Microsoft::AspNetCore::Mvc::Razor::Compilation::RazorViewAttribute ^ value); };
public Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute ViewAttribute { get; set; }
[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; }
[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; }
member this.ViewAttribute : Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute with get, set
[<System.Obsolete("Use Item instead. RazorViewAttribute has been superseded by RazorCompiledItem and will not be used by the runtime.")>]
member this.ViewAttribute : Microsoft.AspNetCore.Mvc.Razor.Compilation.RazorViewAttribute with get, set
Public Property ViewAttribute As RazorViewAttribute

属性值

属性

注解

可为 null

适用于