The ReceiveMessageTimeout property sets or returns the time after which the DTSMessageQueueTask object will terminate if a message is not found in the specified queue.
object.ReceiveMessageTimeout [= seconds]
Part | Description |
---|---|
object | Expression that evaluates to a DTSMessageQueueTask object |
seconds | Seconds after which task will terminate if message is not received |
Long
Read/write
HRESULT ReceiveMessageTimeout(long* pVal);
HRESULT ReceiveMessageTimeout(long pVal);
The property also can be referenced through the Properties collection of the Task object with the following code:
Set taskprops = task.Properties
taskprops("ReceiveMessageTimeout") [= seconds]