UrlHelper.ContentUrl Method

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

Overloads

ContentUrl(Entity, String, Boolean, Boolean) Returns the url to the content (binary data) of a Entity<File>.
ContentUrl(ExternalLink, Boolean, Boolean, Boolean) Returns a content url for the external link (only for links that reference files).

ContentUrl(Entity, String, Boolean, Boolean)

Returns the url to the content (binary data) of a Entity<File>.

public static string ContentUrl(this Entity file, string extension = null, bool absolute = false, bool download = false)

Parameters

file
Weavy.Core.Models.Entity{Weavy.Core.Models.File}
extension
System.String
absolute
System.Boolean
download
System.Boolean

Returns

System.String

ContentUrl(ExternalLink, Boolean, Boolean, Boolean)

Returns a content url for the external link (only for links that reference files).

public static string ContentUrl(this ExternalLink link, bool password = false, bool absolute = false, bool download = false)

Parameters

password
System.Boolean
absolute
System.Boolean
download
System.Boolean

Returns

System.String