ObsoleteAttribute.UrlFormat Property

Definition

Gets or sets the URL for corresponding documentation. The API accepts a format string instead of an actual URL, creating a generic URL that includes the diagnostic ID.

public string? UrlFormat { get; set; }

Property Value

The format string that represents a URL to corresponding documentation.

Remarks

An example format string is https://contoso.com/obsoletion-warnings/{0}.

Applies to

Product Versions
.NET 5, 6, 7, 8, 9