Click or drag to resize
ActivityInitializerExtensionsWithContactId Method
Extends the provided activityInitializer with contactId.

Namespace: CMS.Activities
Assembly: CMS.Activities (in CMS.Activities.dll) Version: 10.0.0
Syntax
C#
public static IActivityInitializer WithContactId(
	this IActivityInitializer activityInitializer,
	int contactId
)

Parameters

activityInitializer
Type: CMS.ActivitiesIActivityInitializer
Initializer to extend
contactId
Type: SystemInt32
Contact id 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