Table of Contents

Method GetImageUrl

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetImageUrl(string)

Returns the URL of the image resource associated with the specified name.

public static string GetImageUrl(string name)

Parameters

name string

The name of the image resource for which to retrieve the URL. Cannot be null.

Returns

string

A string containing the URL of the image resource. If no override is set, the URL is generated using a default template.

Remarks

If an image URL override is configured, this method uses the override to generate the URL; otherwise, it constructs the URL using a predefined template. This method does not validate whether the resulting URL points to an existing resource.