Поделиться через


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.

Применяется к