Share via


com:DataFormat (SurrogateServer/Class)

應用程式支援的資料格式。

元素階層

<套件>

    <應用程式>

         <應用程式>

              <擴充功能>

                   <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).' />

屬性和元素

屬性

屬性 描述 資料類型 必要 預設值
AspectFlag 表示所需資料或檢視層面的 DVASPECT 列舉值。 具有下列其中一個列舉值的字串: ContentThumbnailIconDocPrint Yes
MediumFlag 用於資料傳輸的儲存媒體類型。 這會對應至 TYMED 列舉。 值介於 0 到 127 之間的整數。 Yes
方向 這代表對應至資料流程方向的 DATADIR 列舉。 具有下列其中一個列舉值的字串: GetSetGetAndSet Yes
FormatName 資料格式的名稱。 長度介於 1 到 32767 個字元之間的字串,其開頭和結尾具有非空白字元。 No
StandardFormat 資料格式的整數值。 十六進位格式的字串,包含數位或字母 ab 、、 dcef (大寫或小寫) 。 No

子元素

無。

父元素

父元素 描述
com:DataFormats 指定應用程式所支援的預設和主要資料格式。

備註

請注意 ,FormatNameStandardFormat 是互斥的屬性,而且是 標準剪貼簿格式

規格需求

Item
命名空間 http://schemas.microsoft.com/appx/manifest/com/windows10
OS 最低版本 Windows 10版本 1703 (組建 15063)