Share via


AnalyzerConfigSet.GetOptionsForSourcePath(String) 方法

定義

AnalyzerConfigOptionsResult 回來源檔案的 。 這會計算套 AnalyzerConfig 用至此檔案的規則,如果同一個檔案有多個規則,就會正確套用優先順序規則。

public Microsoft.CodeAnalysis.AnalyzerConfigOptionsResult GetOptionsForSourcePath (string sourcePath);
member this.GetOptionsForSourcePath : string -> Microsoft.CodeAnalysis.AnalyzerConfigOptionsResult
Public Function GetOptionsForSourcePath (sourcePath As String) As AnalyzerConfigOptionsResult

參數

sourcePath
String

檔案的路徑,例如來源檔案或其他檔案。 必須為非 Null。

傳回

備註

這個方法很安全,可從多個執行緒呼叫。

適用於