System.Windows.Forms.DataObject.SetFileDropList Method

Adds a collection of file names to the data object in the DataFormats.FileDrop format.

Syntax

public virtual void SetFileDropList (System.Collections.Specialized.StringCollection filePaths)

Parameters

filePaths
A System.Collections.Specialized.StringCollection containing the file names.

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 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 DataObject.ContainsFileDropList method to determine whether the data object contains data in that format before retrieving it with the DataObject.GetFileDropList method.

Requirements

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