System.Windows.Forms.Clipboard.ContainsFileDropList Method

Indicates whether there is data on the Clipboard that is in the DataFormats.FileDrop format or can be converted to that format.

Syntax

public static bool ContainsFileDropList ()

Returns

true if there is a file drop list on the Clipboard; otherwise, false.

Remarks

A file drop list is a collection of strings containing path information for files.

Use this method to determine whether the Clipboard contains a file drop list before retrieving it with the Clipboard.GetFileDropList method.

Note:

The System.Windows.Forms.Clipboard class can only be used in threads set to single thread apartment (STA) mode. To use this class, ensure that your Main method is marked with the STAThreadAttribute attribute.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0