RazorViewEngineOptions.CompilationCallback 屬性

定義

警告

This property is obsolete and will be removed in a future version. See https://aka.ms/AA1x4gg for details.

取得或設定用來自訂 Razor 編譯的回呼,以變更您可以更新 Compilation 屬性的編譯設定。

public:
 property Action<Microsoft::AspNetCore::Mvc::Razor::Compilation::RoslynCompilationContext ^> ^ CompilationCallback { Action<Microsoft::AspNetCore::Mvc::Razor::Compilation::RoslynCompilationContext ^> ^ get(); void set(Action<Microsoft::AspNetCore::Mvc::Razor::Compilation::RoslynCompilationContext ^> ^ value); };
public Action<Microsoft.AspNetCore.Mvc.Razor.Compilation.RoslynCompilationContext> CompilationCallback { get; set; }
[System.Obsolete("This property is obsolete and will be removed in a future version. See https://aka.ms/AA1x4gg for details.")]
public Action<Microsoft.AspNetCore.Mvc.Razor.Compilation.RoslynCompilationContext> CompilationCallback { get; set; }
member this.CompilationCallback : Action<Microsoft.AspNetCore.Mvc.Razor.Compilation.RoslynCompilationContext> with get, set
[<System.Obsolete("This property is obsolete and will be removed in a future version. See https://aka.ms/AA1x4gg for details.")>]
member this.CompilationCallback : Action<Microsoft.AspNetCore.Mvc.Razor.Compilation.RoslynCompilationContext> with get, set
Public Property CompilationCallback As Action(Of RoslynCompilationContext)

屬性值

屬性

備註

此處所做的自訂不會反映在 Intellisense) 工具 (。

適用於