The DTSMessageVersionID property sets or returns the globally unique identifier (GUID) of the Data Transformation Services (DTS) package version that is the source of the message this DTSMessageQueueTask object is to receive.
object.DTSMessageVersionID [= GUID]
Part | Description |
---|---|
object | Expression that evaluates to a DTSMessageQueueTask object |
GUID | The GUID of the package version that is the message source |
String
Read/write
HRESULT DTSMessageVersionID(BSTR* pVal);
HRESULT DTSMessageVersionID(BSTR pVal);
The DTSMessageVersionID affects only DTSMessageQueueTask objects that are message receivers.
To determine the version ID of a DTS package, open the package in DTS Designer. In the Package/Properties dialog box, click the General tab.
The syntax of GUIDs is:
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}
where X represents hexadecimal digits. The groupings are 8, 4, 4, 4, and 12 digits. The curly brackets are required. Spaces cannot be embedded for readability.
The property also can be referenced through the Properties collection of the Task object with the following code:
Set taskprops = task.Properties
taskprops("DTSMessageVersionID") [= GUID]
The following example assigns a GUID string to the DTSMessageVersionID property:
oCustTask.DTSMessageVersionID = _
"{4E078447-0EFE-11D3-8DFE-00C04FD7B78D}"