Sets an event handler delegate to use when the application calls RunWorkerAsync. This property supports the Configuration Manager infrastructure and is not intended to be used directly from your code. Namespace: Microsoft.ConfigurationManagement.ManagementProvider
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

Visual Basic
Dim instance As SmsBackgroundWorker
Dim value As DoWorkEventHandler

instance.WorkerProcess = value

Syntax

Visual Basic
Public WriteOnly Property WorkerProcess As DoWorkEventHandler
C#
public DoWorkEventHandler WorkerProcess { set; }
C++
public:
property DoWorkEventHandler^ WorkerProcess {
		void set (DoWorkEventHandler^ value);
}
J#
/** @property */
public void set_WorkerProcess (DoWorkEventHandler value)
JScript
public function set WorkerProcess (value : DoWorkEventHandler)

Property Value

System.ComponentModel.DoWorkEventHandler delegate.

Exceptions

Exception type Condition
InvalidOperationException

The caller attempted to configure the worker process after it had been previously configured.

Remarks

This property can be set only once during the lifetime of the SmsBackgroundWorker object.


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also