共用方式為


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

傳回

適用於