The SourceSite property sets or returns the location from which the files will be transferred by a DTSFTPTask object.
object.SourceSite [= string]
Part | Description |
---|---|
object | Expression that evaluates to a DTSFTPTask object |
string | Location from which the files will be transferred, either an Internet FTP site or a network directory |
String
Read/write
HRESULT SourceSite(BSTR* pVal);
HRESULT SourceSite(BSTR pVal);
If the SourceLocation property specifies an Internet site, the SourceSite property must be defined.
The property also can be referenced through the Properties collection of the Task object with the following code:
Set taskprops = task.Properties
taskprops("SourceSite") [= string]
The following example sets the SourceSite property to a File Transfer Protocol (FTP) site name:
oCustTask.SourceSite = "ftp.microsoft.com"