ForMedia(Media, bool)
Gets a
public Uri ForMedia(Media media, bool canonical = False)
- Returns:
- Uri
Parameters
media
Media
The media item to get the
canonical
bool
If false, the current request host is used to construct the uri (default). If true, the canonical (primary) host is used (which may be the same as the current host).
ForMedia(IPublishedContent, bool)
Gets a
public Uri ForMedia(IPublishedContent asset, bool canonical = False)
- Returns:
- Uri
Parameters
asset
IPublishedContent
The media asset to get the
canonical
bool
If false, the current request host is used to construct the uri (default). If true, the canonical (primary) host is used (which may be the same as the current host).