DataObject::SetFileDropList Method (StringCollection^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
)

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: