com:DataFormat (in SurrogateServer/Class)

The data format supported by an application.

Element hierarchy

<Package>

    <Applications>

         <Application>

              <Extensions>

                   <com:Extension>

                        <com:ComServer>

                             <com:SurrogateServer>

                                  <com:Class>

                                       <com:DataFormats>

                                            <com:DataFormat>

Syntax

<com:DataFormat
  AspectFlag = 'A string that has one of the following enumeration values: "Content", "Thumbnail", "Icon", or "DocPrint".'
  MediumFlag = 'An integer with a value between 0 and 127.'
  Direction = 'A string that has one of the following enumeration values: "Get", "Set", or "GetAndSet".'
  FormatName = 'An optional string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.'
  StandardFormat = 'An optional string in hexadecimal format containing numbers or the letters a, b, c, d, e, or f (capital or lower case).' />

Attributes and elements

Attributes

Attribute Description Data type Required Default value
AspectFlag Represents a DVASPECT enumeration value for the desired data or view aspect. A string that has one of the following enumeration values: Content, Thumbnail, Icon, or DocPrint. Yes
MediumFlag The type of storage medium used for data transfer. This corresponds to the TYMED enumeration. An integer with a value between 0 and 127. Yes
Direction This represents the DATADIR enumeration which corresponds to the direction of the data flow. A string that has one of the following enumeration values: Get, Set, or GetAndSet. Yes
FormatName The name of the data format. A string between 1 and 32767 characters in length with a non-whitespace character at its beginning and end. No
StandardFormat The integer value of the data format. A string in hexadecimal format containing numbers or the letters a, b, c, d, e, or f (capital or lower case). No

Child elements

None.

Parent elements

Parent element Description
com:DataFormats Specifies the default and main data formats supported by an application.

Remarks

Note that FormatName and StandardFormat are mutually exclusive attributes and are Standard Clipboard Formats.

Requirements

Item Value
Namespace http://schemas.microsoft.com/appx/manifest/com/windows10
Minimum OS Version Windows 10 version 1703 (Build 15063)