Export (0) Print
Expand All

Activity Constructor

Initializes a new instance of the Activity class.

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

public Activity (
	ServiceConfig cfg
)
public Activity (
	ServiceConfig cfg
)
public function Activity (
	cfg : ServiceConfig
)

Parameters

cfg

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

Exception typeCondition

PlatformNotSupportedException

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); 

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1

Community Additions

ADD
Show:
© 2014 Microsoft