| title | DetailsLink Constructors | |||
|---|---|---|---|---|
| description | Initializes a new instance of the DetailsLink class. | |||
| ms.date | 2/25/2025 | |||
| ms.topic | reference | |||
| no-loc |
|
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
Initializes a new instance of the DetailsLink class.
public DetailsLink()
{
}Namespace: Microsoft.CommandPalette.Extensions.Toolkit
Initializes a new instance of the DetailsLink class, setting its Link and Text properties to url.
public DetailsLink(string url)
: this(url, url)
{
}url String
The URL to be set as both the link and text for the DetailsLink instance.
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
Initializes a new instance of the DetailsLink class, setting its Link property to url and Text to text.
public DetailsLink(string url, string text)
{
if (Uri.TryCreate(url, default(UriCreationOptions), out var newUri))
{
Link = newUri;
}
Text = text;
}url String
The URL to be set as the link for the DetailsLink instance.
text String
The text to be displayed for the link in the Command Palette. This text is what users will see and click on to access the link.