SetFileDropList Method

Clipboard.SetFileDropList Method (StringCollection)

 

Stores FileDrop data on the Clipboard. The dropped file list is specified as a string collection.

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

public static void SetFileDropList(
	StringCollection fileDropList
)

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.

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