Export (0) Print
Expand All

DataObject.SetFileDropList Method

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)

public void SetFileDropList (
	StringCollection fileDropList
public void SetFileDropList (
	StringCollection fileDropList
public function SetFileDropList (
	fileDropList : StringCollection
You cannot use methods in XAML.



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

Exception typeCondition


fileDropList is a null reference (Nothing in Visual Basic).


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).

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

© 2014 Microsoft