Click or drag to resize
CampaignEditViewModel Constructor (CampaignInfo, DateTime)
Constructor takes CampaignInfo and creates new instance of CampaignEditViewModel containing all values required for communication between Web API and javascript modules.

Namespace: CMS.WebAnalytics
Assembly: CMS.WebAnalytics (in CMS.WebAnalytics.dll) Version: 9.0.0
Syntax
C#
public CampaignEditViewModel(
	CampaignInfo campaign,
	DateTime dateTime
)

Parameters

campaign
Type: CMS.WebAnalyticsCampaignInfo
Campaign info obtained from the database
dateTime
Type: SystemDateTime
Datetime, used to calculate the current status of campaign
Exceptions
ExceptionCondition
ArgumentNullExceptioncampaign is null
See Also