SOLIDWORKS PDM Professional API Help Send Feedback
AddFileByID Method (IEdmBatchDelete)
See Also 
EPDM.Interop.epdm Namespace > IEdmBatchDelete Interface : AddFileByID Method (IEdmBatchDelete)


lFileID
ID of file to delete
lFolderID
ID of file's parent folder
Adds a file with the specified file and folder IDs to the batch of files to be deleted.

Syntax

Visual Basic 
Sub AddFileByID( _
   ByVal lFileID As System.Integer, _
   ByVal lFolderID As System.Integer _
) 
C# 
void AddFileByID( 
   System.int lFileID,
   System.int lFolderID
)
C++/CLI 
void AddFileByID( 
&   System.int lFileID,
&   System.int lFolderID
) 

Parameters

lFileID
ID of file to delete
lFolderID
ID of file's parent folder

Remarks

After calling this method, call IEdmBatchDelete::CommitDelete to delete the file from the vault.

Return codes:

  • S_OK: The method successfully executed.
  • S_FALSE: One of the arguments is invalid.
 

See Also

Availability

SOLIDWORKS PDM Professional 2008