Activity Constructor
Collapse the table of content
Expand the table of content

Activity Constructor (ServiceConfig)


Initializes a new instance of the Activity class.

Namespace:   System.EnterpriseServices
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

public Activity(
	ServiceConfig cfg


Type: System.EnterpriseServices.ServiceConfig

A ServiceConfig that contains the configuration information for the services to be used.

Exception Condition

Activity is not supported on the current platform.

Creates an Activity that is used to submit batch work to COM+ services. The context associated with the activity is completely determined by the ServiceConfig object that is passed through the cfg parameter.

The following code example demonstrates how to initialize a new instance of the Activity class.

Activity activity = new Activity(serviceConfig); 

.NET Framework
Available since 1.1
Return to top
© 2016 Microsoft