The MessageDataFile property sets or returns the name and path of the file that provides the data for a DTSMessageQueueTask object data file message.
object.MessageDataFile [= filespec]
| Part | Description |
|---|---|
| object | Expression that evaluates to a DTSMQMessage object |
| filespec | Name and path of the file that provides the data for the message |
String
Read/write
HRESULT MessageDataFile(BSTR* pVal);
HRESULT MessageDataFile(BSTR pVal);
The MessageDataFile property must be defined if the MessageType property is DTSMQMessageType_DataFile.