DataObject.GetFileDropList Method

Definition

Retrieves a collection of file names from the data object.

C#
public virtual System.Collections.Specialized.StringCollection GetFileDropList();

Returns

A StringCollection containing file names or null if the data object does not contain any data that is in the FileDrop format or can be converted to that format.

Remarks

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 this array to a StringCollection and returns the collection.

Use the ContainsFileDropList method to determine whether the data object contains a file drop list before retrieving it with this method.

Use the SetFileDropList method to add a file drop list to the data object.

Applies to

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

See also