Редагувати

Поділитися через


DataObject.SetFileDropList(StringCollection) Method

Definition

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

public:
 virtual void SetFileDropList(System::Collections::Specialized::StringCollection ^ filePaths);
public virtual void SetFileDropList (System.Collections.Specialized.StringCollection filePaths);
abstract member SetFileDropList : System.Collections.Specialized.StringCollection -> unit
override this.SetFileDropList : System.Collections.Specialized.StringCollection -> unit
Public Overridable Sub SetFileDropList (filePaths As StringCollection)

Parameters

filePaths
StringCollection

A StringCollection containing the file names.

Exceptions

filePaths is null.

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

Applies to

See also