System.Windows.Forms.DataObject.GetFileDropList Method

Retrieves a collection of file names from the data object.

Syntax

public virtual System.Collections.Specialized.StringCollection GetFileDropList ()

Returns

A System.Collections.Specialized.StringCollection containing file names or null if the data object does not contain any data that is in the DataFormats.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 System.Collections.Specialized.StringCollection and returns the collection.

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

Use the DataObject.SetFileDropList(System.Collections.Specialized.StringCollection) method to add a file drop list to the data object.

Requirements

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