RoslynCompilationContext(CSharpCompilation) 构造函数

定义

构造 类型的新实例 RoslynCompilationContext

public:
 RoslynCompilationContext(Microsoft::CodeAnalysis::CSharp::CSharpCompilation ^ compilation);
public RoslynCompilationContext (Microsoft.CodeAnalysis.CSharp.CSharpCompilation compilation);
new Microsoft.AspNetCore.Mvc.Razor.Compilation.RoslynCompilationContext : Microsoft.CodeAnalysis.CSharp.CSharpCompilation -> Microsoft.AspNetCore.Mvc.Razor.Compilation.RoslynCompilationContext
Public Sub New (compilation As CSharpCompilation)

参数

compilation
CSharpCompilation

CSharpCompilation 要设置为 Compilation 属性。

适用于