UrlHelper.PreviewUrl Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Overloads

PreviewUrl(Attachment, bool) Returns the url used to preview the specified attachment.
PreviewUrl(IFile, bool) Returns the url used to preview the specified file.

PreviewUrl(Attachment, bool)

Returns the url used to preview the specified attachment.

public static string PreviewUrl(this Attachment attachment, bool absolute = false)

Parameters

attachment
Attachment

The entity to get url for.

absolute
bool

false to return a relative url or true to return an absolute url.

Returns

string

PreviewUrl(IFile, bool)

Returns the url used to preview the specified file.

public static string PreviewUrl(this IFile file, bool absolute = false)

Parameters

file
IFile

The entity to get url for.

absolute
bool

false to return a relative url or true to return an absolute url.

Returns

string