DataObject.SetFileDropList(StringCollection) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a collection of file names to the data object in the FileDrop format.
public:
virtual void SetFileDropList(System::Collections::Specialized::StringCollection ^ filePaths);
public virtual void SetFileDropList(System.Collections.Specialized.StringCollection filePaths);
abstract member SetFileDropList : System.Collections.Specialized.StringCollection -> unit
override this.SetFileDropList : System.Collections.Specialized.StringCollection -> unit
Public Overridable Sub SetFileDropList (filePaths As StringCollection)
- filePaths
- StringCollection
A StringCollection containing the file names.
filePaths
is null
.
A file drop list is a collection of strings containing path information for files.
A file drop list is stored in a data object as a String array. This method converts filePaths
to a String array before adding it to the data object.
To retrieve a file drop list from the data object, first use the ContainsFileDropList method to determine whether the data object contains data in that format before retrieving it with the GetFileDropList method.
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: