ExperimentalAttribute.DiagnosticId Property
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 the ID that the compiler will use when reporting a use of the API the attribute applies to.
public:
property System::String ^ DiagnosticId { System::String ^ get(); };
public string DiagnosticId { get; }
member this.DiagnosticId : string
Public ReadOnly Property DiagnosticId As String
The unique diagnostic ID.
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.
Product | Versions |
---|---|
.NET | 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: