Clears the Clipboard and then adds a collection of file names in the DataFormats.FileDrop format.
- filePaths
- A System.Collections.Specialized.StringCollection containing the file names.
A file drop list is a collection of strings containing path information for files.
A file drop list is stored on the Clipboard as a string array. This method converts filePaths to a string array before adding it to the Clipboard.
To retrieve a file drop list from the Clipboard, first use the Clipboard.ContainsFileDropList method to determine whether the Clipboard contains data in that format before retrieving it with the Clipboard.GetFileDropList method.
The System.Windows.Forms.Clipboard class can only be used in threads set to single thread apartment (STA) mode. To use this class, ensure that your Main method is marked with the STAThreadAttribute attribute.