Compilation.GetRequiredLanguageVersion(Diagnostic) 方法

定义

返回在 Diagnostic找到所需的语言版本(如果有)。 如果未找到任何值,则返回 null。

public:
 static System::String ^ GetRequiredLanguageVersion(Microsoft::CodeAnalysis::Diagnostic ^ diagnostic);
public static string GetRequiredLanguageVersion (Microsoft.CodeAnalysis.Diagnostic diagnostic);
public static string? GetRequiredLanguageVersion (Microsoft.CodeAnalysis.Diagnostic diagnostic);
static member GetRequiredLanguageVersion : Microsoft.CodeAnalysis.Diagnostic -> string
Public Shared Function GetRequiredLanguageVersion (diagnostic As Diagnostic) As String

参数

diagnostic
Diagnostic

返回

适用于