GetFileDropList Method

DataObject.GetFileDropList Method ()

 

Retrieves a collection of file names from the data object.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public virtual StringCollection GetFileDropList()

Return Value

Type: System.Collections.Specialized.StringCollection

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.

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.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft