DataObject.SetFileDropList Method (StringCollection)

 

Stores FileDrop data in this data object. The dropped file list is specified as a string collection.

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

member SetFileDropList : 
        fileDropList:StringCollection -> unit

Parameters

fileDropList
Type: System.Collections.Specialized.StringCollection

A string collection that contains the dropped file list to store in the data object.

Exception Condition
ArgumentNullException

fileDropList is null.

ArgumentException

fileDropList contains zero strings, or the full path to file specified in the list cannot be resolved.

This method adds data with auto-conversion enabled (the same as calling SetData(String, Object, Boolean) with autoConvert set to true).

.NET Framework
Available since 3.0
Return to top
Show: