Activity(ServiceConfig) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the Activity class.
public:
Activity(System::EnterpriseServices::ServiceConfig ^ cfg);
public Activity (System.EnterpriseServices.ServiceConfig cfg);
new System.EnterpriseServices.Activity : System.EnterpriseServices.ServiceConfig -> System.EnterpriseServices.Activity
Public Sub New (cfg As ServiceConfig)
Parameters
- cfg
- ServiceConfig
A ServiceConfig that contains the configuration information for the services to be used.
Exceptions
Activity is not supported on the current platform.
Examples
The following code example demonstrates how to initialize a new instance of the Activity class.
Activity activity = new Activity(serviceConfig);
Remarks
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.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για