Difference between revisions of "Activity:DeleteFile (Activity)"
(Created page with "{{ActivityInfoBox | title = Delete File | name = DeleteFile | image = | imagecaption = Activity DeleteFile | purpose = Delete a file | category = File Primitives | returns = ...") |
|||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | The DeleteFileactivity deletes one or more files specified by its full path. | ||
+ | |||
+ | =Description= | ||
{{ActivityInfoBox | {{ActivityInfoBox | ||
| title = Delete File | | title = Delete File | ||
Line 9: | Line 12: | ||
| version = 2.3+ | | version = 2.3+ | ||
}} | }} | ||
− | |||
− | ==Arguments== | + | ===Arguments=== |
{| class="wikitable sortable" | width = "50%" | {| class="wikitable sortable" | width = "50%" | ||
|- | |- | ||
Line 22: | Line 24: | ||
| SingleFileName || {{String_MSDN}} || In || Full path name of a file to be deleted | | SingleFileName || {{String_MSDN}} || In || Full path name of a file to be deleted | ||
|} | |} | ||
− | ==Usage== | + | |
+ | ===Usage=== | ||
This activity deletes files specified by full path names given in the '''IN''' arguments '''SingleFileNamefiles''' and '''FileNames'''. | This activity deletes files specified by full path names given in the '''IN''' arguments '''SingleFileNamefiles''' and '''FileNames'''. | ||
It returns the number of actual deleted files. | It returns the number of actual deleted files. | ||
+ | |||
+ | = Example = | ||
+ | {| class="wikitable sortable" | width = "50%" | ||
+ | |- | ||
+ | ! Argument !! Value | ||
+ | |- align="left" | ||
+ | | FileNames || <source lang="vb">New System.Collections.Generic.List(of String) _ | ||
+ | From {"C:\file1.xml","C:\file2.xml"}</source> | ||
+ | |} | ||
+ | |||
+ | <!-- DO NOT REMOVE THIS -->{{Activity/End}}<!-- DO NOT REMOVE THIS --> | ||
==See also== | ==See also== | ||
* [[Workflow Designer]] | * [[Workflow Designer]] | ||
− | + | * [[Activity:DeleteDirectoryContent_(Activity)]] | |
− | [[ | + | |
− | + |
Latest revision as of 09:45, 4 November 2015
The DeleteFileactivity deletes one or more files specified by its full path.