ObsoleteAttribute.DiagnosticId Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the ID that the compiler will use when reporting a use of the API.
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
Property Value
The unique diagnostic ID.
Remarks
The diagnostic ID is shown in build output for warnings and errors.
This property represents the unique ID that can be used to suppress the warnings or errors, if needed.
Choose an appropriate diagnostic ID such that it is unique.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.