ObsoleteAttribute.DiagnosticId 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定編譯器在回報 API 使用時會使用的 ID。
public:
property System::String ^ DiagnosticId { System::String ^ get(); void set(System::String ^ value); };
public string? DiagnosticId { get; set; }
member this.DiagnosticId : string with get, set
Public Property DiagnosticId As String
屬性值
獨特的診斷識別碼。
備註
診斷 ID 會在建置輸出中顯示,用於警告和錯誤。
此屬性代表唯一可用來抑制警告或錯誤(如有需要)的 ID。
選擇一個適當的診斷識別 碼,使其具有唯一性。