UrlHelper.FileUrl Method

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

Overloads

FileUrl(Attachment, String, Boolean, Boolean) Returns the url to the binary data of an attachment.
FileUrl(Blob, String, Boolean, Boolean) Returns the url to the binary data of a blob.
FileUrl(IFile, String, Boolean, Boolean) Returns the url to the binary data of a file.

FileUrl(Attachment, String, Boolean, Boolean)

Returns the url to the binary data of an attachment.

public static string FileUrl(this Attachment attachment, string extension = null, bool absolute = false, bool download = false)

Parameters

attachment
Attachment
extension
System.String
absolute
System.Boolean
download
System.Boolean

Returns

System.String

FileUrl(Blob, String, Boolean, Boolean)

Returns the url to the binary data of a blob.

public static string FileUrl(this Blob blob, string extension = null, bool absolute = false, bool download = false)

Parameters

blob
Blob
extension
System.String
absolute
System.Boolean
download
System.Boolean

Returns

System.String

FileUrl(IFile, String, Boolean, Boolean)

Returns the url to the binary data of a file.

public static string FileUrl(this IFile file, string extension = null, bool absolute = false, bool download = false)

Parameters

file
IFile
extension
System.String
absolute
System.Boolean
download
System.Boolean

Returns

System.String