UrlHelper.Url Method

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

Overloads

Url(ExternalLink, bool, bool, bool) Returns an url for the external link.
Url(IEntity, bool) Returns the url to an entity.
Url(Space, bool) Returns the url to the first app of the specified type in a space.

Url(ExternalLink, bool, bool, bool)

Returns an url for the external link.

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

Parameters

password
bool
absolute
bool
download
bool

Returns

string

Url(IEntity, bool)

Returns the url to an entity.

public static string Url(this IEntity entity, bool absolute = false)

Parameters

entity
IEntity

The entity to get url for.

absolute
bool

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

Returns

string

Url(Space, bool)

Returns the url to the first app of the specified type in a space.

public static string Url<TApp>(this Space space, bool absolute = false)

    where TApp : App

Parameters

space
Space
absolute
bool

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

Returns

string