DataFormats Class

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

Provides static, predefined format names for data objects. Use the named constants to identify the format of the data that you request from an IDataObject object.

Inheritance Hierarchy


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


Public NotInheritable Class DataFormats
public static class DataFormats

The DataFormats type exposes the following members.


  Name Description
Public fieldStatic member FileDrop Specifies the Microsoft Windows file drop format.



Silverlight specifies only one data format, DataFormats.FileDrop. This data format is used by the file drop target scenario that is enabled by events on UIElement. For more information, see AllowDrop.

Version Information


Supported in: 5, 4


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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.