DeleteVirtualFilesByPrefix
Workflow data tools, Virtual files, ActiveX, DLL
Description
Deletes every registered virtual file whose name starts with a prefix
Syntax
ActiveX
Function PDFlib::DeleteVirtualFilesByPrefix(Prefix As String) As LongDLL
int DLDeleteVirtualFilesByPrefix(int InstanceID, const wchar_t* Prefix);
int DLDeleteVirtualFilesByPrefixA(int InstanceID, const char* Prefix);
Parameters
| InstanceID | Library instance returned by DLCreateLibrary |
|---|---|
| Prefix | Name prefix of the files to delete; must not be empty |
Return values
Returns the number of deleted files. An empty prefix deletes nothing, returns 0 and records a reason; use DLDeleteAllVirtualFiles to clear the registry
Remarks
The virtual file registry is shared by every library instance in the process and is used by every mem:// path and by registered file names; scope workflow resources under a unique prefix
ActiveX exposes this method on IPDFlibrary24; obtain it with CoPDFlibrary.CreateEditionTools24 or query the default interface of PDFlibAX 4.74 or later
All editions include these functions. Failed ActiveX calls return an empty string, 0 or Empty and record the reason for GetWorkflowToolsError. The C#, VB.NET and Visual C++ WorkflowTools examples in the DLL and ActiveX demo folders show a complete request, page plan and rollback workflow
See also
Workflow data tools · Virtual file registry · GetWorkflowToolsError