ObsoleteAttribute.UrlFormat 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 URL for corresponding documentation. The API accepts a format string instead of an actual URL, creating a generic URL that includes the diagnostic ID.

C#
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

Proizvod Verzije
.NET 5, 6, 7, 8, 9, 10