Condividi tramite


DataFormats.FileDrop Field

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Specifies the Microsoft Windows file drop format.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Public Shared ReadOnly FileDrop As String
public static readonly string FileDrop

Field Value

Type: System.String
The string specifying the Microsoft Windows file drop format.

Remarks

This constant is typically used as the input for IDataObject API calls, which specify a format parameter value as a string.

The value of this constant is the string FileDrop.

The actual data format is specified by the system and is not directly controlled by the Silverlight runtime. In a Silverlight file drop scenario, you should attempt to cast the data object results from this format to an array of type String. The strings contain values that correspond to FileInfo.Name for each file that was included in the original drag operation's event data, if in fact the drag originated from managed code that provides that API. This behavior is partially based on how System.IO.FileInfo implements FileInfo.ToString. Otherwise, the information is the file drag information as reported by the system. This information is also reported as strings for each file name.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.