Export (0) Print
Expand All

ClipboardProxy.ContainsFileDropList Method

Note: This method is new in the .NET Framework version 2.0.

Returns a Boolean indicating whether the Clipboard contains a file drop list.

Namespace: Microsoft.VisualBasic.MyServices
Assembly: Microsoft.VisualBasic (in microsoft.visualbasic.dll)

public bool ContainsFileDropList ()
public boolean ContainsFileDropList ()
public function ContainsFileDropList () : boolean

Return Value

True if a file drop list is stored on the Clipboard; otherwise False.

For more detailed information, see the Visual Basic topic My.Computer.Clipboard.ContainsFileDropList Method.

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

This example determines if there is a file drop list on the Clipboard and adds the list to the ListBoxlstFiles if they exist.

If My.Computer.Clipboard.ContainsFileDropList Then
   Dim filelist As System.Collections.Specialized.StringCollection
   filelist = My.Computer.Clipboard.GetFileDropList()
   For Each filePath As String In filelist
       lstFiles.Items.Add(filePath)
   Next
End If

This code will create an exception if there is no ListBox named lstFiles.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft