Share via


ExperimentalAttribute.DiagnosticId 屬性

定義

取得編譯程式在報告使用 API 時所使用的標識碼,屬性會套用至。

public:
 property System::String ^ DiagnosticId { System::String ^ get(); };
public string DiagnosticId { get; }
member this.DiagnosticId : string
Public ReadOnly Property DiagnosticId As String

屬性值

唯一的診斷標識碼。

備註

診斷標識子會顯示在建置輸出中,以取得警告和錯誤。

此屬性代表唯一標識符,可用來視需要隱藏警告或錯誤。

選擇適當的診斷標識碼 ,使其是唯一的。

適用於