SmsBackgroundWorker.WorkerProcess Property

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

'Usage
Dim instance As SmsBackgroundWorker
Dim value As DoWorkEventHandler

instance.WorkerProcess = value

Syntax

'Declaration
Public WriteOnly Property WorkerProcess As DoWorkEventHandler
public DoWorkEventHandler WorkerProcess { set; }
public:
property DoWorkEventHandler^ WorkerProcess {
    void set (DoWorkEventHandler^ value);
}
/** @property */
public void set_WorkerProcess (DoWorkEventHandler value)
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

Reference

SmsBackgroundWorker Class
SmsBackgroundWorker Members
Microsoft.ConfigurationManagement.ManagementProvider Namespace