Share via


Rescap4:PrimaryInteropAssemblies

定義封裝元件組態。

元素階層

<套件>

    <應用程式>

         <應用程式>

              <擴充功能>

                   <rescap4:Extension>

                        <rescap4:PrimaryInteropAssemblies>

Syntax

<recap4:PrimaryInteropAssemblies
  Version = 'A string with a value between 1 and 32767 characters in length.'
  AssemblyVersion = 'A numeric string containing periods as separators.'
  PublicKey = 'A hexadecimal string value generated by the packager.'
  MachineType = 'A string that can have one of the following values: "x86", "x64", "arm", "arm64", "neutral".'
  TargetClrVersion = 'A numeric string containing periods as separators.'
  FolderPath = 'A string with a value between 1 and 256 characters in length that cannot contain these characters: <, >, :, ", |, ?, or *.' />

屬性和元素

屬性

屬性 描述 資料類型 必要 預設值
AssemblyName 組件的名稱。 長度介於 1 到 32767 個字元之間的字串。 Yes
AssemblyVersion 組件的版本。 包含句點做為分隔符號的數值字串。 Yes
PublicKey 要存取元件的公開金鑰。 封裝程式所產生的十六進位字串值。 Yes
MachineType 用於元件的裝置架構。 可以具有下列其中一個值的字串:x86x64arm、arm64neutral Yes
TargetClrVersion 用於元件的裝置目標架構。 允許句點做為分隔符號的數值。 Yes
FolderPath 組件的路徑。 長度介於 1 到 256 個字元之間的字串,不能包含下列字元: < 、、 >:|" 、、 ? 或 。 * Yes

子元素

子項目 描述
重新導向 指定 Interop 元件的重新導向資訊。

父元素

父元素 描述
rescap4:Extension 宣告應用程式的擴充點。

規格需求

Item
rescap4 http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities/4
OS 最低版本 Windows 10版本 1803 (組建 17134)