Discore
Show / Hide Table of Contents

Method BuildUrl

| Improve this Doc View Source

BuildUrl(string, int?)

Gets the complete URL with the specified extension and size.

Declaration
public string BuildUrl(string ext = "png", int? size = null)
Parameters
Type Name Description
string ext

The resource file extension (e.g. png, webp, gif, etc.).

int? size

An optional pixel size of the resource to return (sets both width and height).

Note: Must be a power of 2 and be between 16 and 2048.

Returns
Type Description
string
Exceptions
Type Condition
ArgumentNullException

Thrown if ext is null.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX