Click or drag to resize
ActivityInitializerExtensionsWithCampaign Method
Extends the provided activityInitializer with campaign.

Namespace: CMS.Activities
Assembly: CMS.Activities (in CMS.Activities.dll) Version: 13.0.131
Syntax
C#
public static IActivityInitializer WithCampaign(
	this IActivityInitializer activityInitializer,
	string campaign
)

Parameters

activityInitializer
Type: CMS.ActivitiesIActivityInitializer
Initializer to extend
campaign
Type: SystemString
Campaign to be saved in activityInitializer

Return Value

Type: IActivityInitializer
Extended activityInitializer

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IActivityInitializer. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also