Share via


com:DataFormats (SurrogateServer/Class)

指定應用程式所支援的預設和主要資料格式。

元素階層

<套件>

    <應用程式>

         <應用程式>

              <擴充功能>

                   <com:Extension>

                        <com:ComServer>

                             <com:SurrogateServer>

                                  <com:Class>

                                       <com:DataFormats>

Syntax

<com:DataFormats
  DefaultFormatName = 'A string with a value between 1 and 32767 characters in length with a non-whitespace character at its beginning and end.'
  DefaultStandardFormat = 'A string in hexadecimal format containing numbers or the letters a, b, c, d, e, or f (capital or lower case).' >

  <!-- Child elements -->
  DataFormat{0,1000}
</com:DataFormats>

答案

{} 特定出現的範圍

屬性和元素

屬性

屬性 描述 資料類型 必要 預設值
DefaultFormatName 格式名稱的字串值。 長度介於 1 到 32767 個字元之間的字串,其開頭和結尾為非空白字元。 Yes
DefaultStandardFormat 格式名稱的十六進位值。 十六進位格式的字串,包含數位或字母 ab 、、 dc 、、 ef (大寫或小寫) 。 Yes

子元素

子項目 描述
DataFormat 應用程式支援的資料格式。

父元素

子項目 描述
com:Class 定義 SurrogateServer 類別註冊。

備註

DefaultFormatName 是字串值, 而 DefaultStandardFormat 是支援資料格式的整數值。 這些值互斥。

這個專案會對應至 DataFormats 子機碼。

規格需求

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