Partager via


CompiledViewDescriptor.ViewAttribute Propriété

Définition

Attention

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

Obtient ou définit la RazorViewAttribute décoration de la vue.

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

Valeur de propriété

Attributs

Remarques

Peut avoir la valeur null.

S’applique à