_DTSLogImport::get_VLogFileInfo, put_VLogFileInfo Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

The VLogFileInfo property is a read/write Variant that contains an array that lists the log files to import.

HRESULT _DTSLogImport::get_VLogFileInfo( 
  VARIANT VLogFileInfo
);

HRESULT _DTSLogImport::put_VLogFileInfo(
  VARIANT VLogFileInfo
);
Property VLogFileInfo() As Variant

Parameters

  • VLogFileInfo
    [C++]

    [out, retval] When getting a value, a VARIANT that contains an array of log filenames.

    [in] When putting a value, a VARIANT that contains an array of log file names.

Return Value

[C++]

This method returns an HRESULT indicating whether it completed successfully. See the Error Values section for more details.

[Visual Basic]

None.

Error Values

[C++]

This method returns S_OK (0x00000000) to indicate success and standard COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.

[Visual Basic]

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

The VLogFileInfo property is only used if the ReadInfoFromAdmin property is set to False. If you specify directories instead of files, all files in that directory will be imported regardless of the file type. No file type checking is performed. If file types are not correct, the import will fail.

Example

Dim oTask 
Dim oPackage 
Dim oTaskProps 
Dim vData
set oPackage = WScript.CreateObject("DTS.Package")
Set oTask = oPackage.Tasks.New("Commerce.DTSLogImport")
ReDim vData(1)
' File names or folder names can be used to specify the files to import. 
' If the folder name is used all the files in that folder will be added to
' the current import task.
vData(0) = "LDS Name| File1| File2"
vData(1) = "LDS Name| Folder"
oTaskProps("VLogFileInfo").Value = vData
oPackage.Tasks.Add oTask

See Also

Other Resources

_DTSLogImport::CustomTask_Execute Method

_DTSLogImport::get_EndTime, put_EndTime Property

_DTSLogImport::get_ImportAllLogsSinceLastImport, put_ImportAllLogsSinceLastImport Property

_DTSLogImport::get_NumRetries, put_NumRetries Property

_DTSLogImport::PersistPropertyBag_Load Method

_DTSLogImport::PersistPropertyBag_Save Method

_DTSLogImport::get_ReadInfoFromAdmin, put_ReadInfoFromAdmin Property

_DTSLogImport::get_RetryInterval, put_RetryInterval Property

_DTSLogImport::get_SourceName, put_SourceName Property

_DTSLogImport::get_SourceType, put_SourceType Property

_DTSLogImport::get_StartTime, put_StartTime Property