Click or drag to resize
ActivityInitializerExtensionsWithSiteId Method
Extends the provided activityInitializer with siteId.

Namespace: CMS.Activities
Assembly: CMS.Activities (in CMS.Activities.dll) Version: 12.0.0
Syntax
C#
public static IActivityInitializer WithSiteId(
	this IActivityInitializer activityInitializer,
	int siteId
)

Parameters

activityInitializer
Type: CMS.ActivitiesIActivityInitializer
Initializer to extend
siteId
Type: SystemInt32
Site 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