Click or drag to resize
IssueHelperGetBaseUrl Method
Creates a base URL for prefixing links in the given newsletter's issues.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 10.0.0
Syntax
C#
public static string GetBaseUrl(
	NewsletterInfo newsletter,
	SiteInfo site = null
)

Parameters

newsletter
Type: CMS.NewslettersNewsletterInfo
Newsletter to get base url from
site (Optional)
Type: CMS.SiteProviderSiteInfo
Site to create base url from, if null then CurrentSite is used

Return Value

Type: String
Exceptions
ExceptionCondition
ArgumentNullExceptionnewsletter is null
See Also