com4:ClassReference (在 ManagedInProcessServer 中)
指定與 Managed 同行程伺服器相關聯的類別,並設定註冊詳細數據。
元素階層
<com4:ClassReference>
<com4:ClassReference>
語法
<com4:ClassReference
ThreadingModel = 'A string with that can have one of the following values: "Both", "STA", "MTA", "MainSTA", or "Neutral".'
ImplementationClass = 'An alphanumeric string, separated by a period, with a value between 1 and 255 characters in length (for example, Foo.Bar or Foo.Bar.1).'
Virtualization = 'A string with that can have one of the following values: "enabled" or "disabled".'
Id = 'A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.'
></com4:ClassReference>
屬性和元素
屬性
屬性 | 描述 | 數據類型 | 必填 | 預設值 |
---|---|---|---|---|
ThreadingModel | 具有下列其中一個值的字串:兩個、STA、MTA、MainSTA或 Neutral。 | 是的 | ||
ImplementationClass | 與類別參考相關聯的實作類別。 | 以句號分隔的英數位元字串,長度介於 1 到 255 個字元之間(例如,Foo.Bar 或 Foo.Bar.1)。 | 是的 | |
虛擬化 | 指定載入 類別時是否使用虛擬化。 | 具有下列其中一個值的字串:啟用 或停用 | 是的 | |
識別碼 | 所參考 類別 的標識碼。 | xxxxxxxx-xxxx-xxxx-xxxx-xxxx-xxxxxx 格式的 GUID。 | 是的 |
子專案
沒有。
父元素
父元素 | 描述 |
---|---|
com4:ManagedInProcessServer | 向一或多個類別註冊註冊受控同進程伺服器。 |
要求
專案 | 價值 |
---|---|
Namespace | http://schemas.microsoft.com/appx/manifest/com/windows10/4 |
最低 OS 版本 | Windows 10 (組建 20348) |