Skip to content

UriHelper.Combine method

Combines a URL with a filename by inserting a "/" character between them. This works like Path.Combine.

public static string Combine(string url, string fileName)
parameter description
url URL will be combined (null or empty can be used).
fileName Filename or Path (required).

Return Value

New string which consists of combining URL and Filename by inserting a "/" character between them.

Remarks

This function is used for only simple combining actions. like ".." relative actions doesn't be checked as well as URL with querystring doesn't be supported.

See Also