The TaskType property sets or returns the type of the DTSMessageQueueTask object, sender, or receiver.
object.TaskType [= value]
| Part | Description |
|---|---|
| Object | Expression that evaluates to a DTSMessageQueueTask object |
| Value | Code that defines the task type, sender, or receiver |
Long
Read/write
HRESULT TaskType(long* pVal);
HRESULT TaskType(long pVal);
The valid values for this property are defined by the DTSMQType constants.
The property also can be referenced through the Properties collection of the Task object with the following code:
Set taskprops = task.Properties
taskprops("TaskType") [= value]