com4:ClassReference (InProcessServer 内)
登録されたインプロセス サーバーが関連付けられているクラスを指定し、登録の詳細を設定します。
要素階層
<com4:ClassReference>
<com4:ClassReference>
構文
<com4:ClassReference
ThreadingModel = 'A string that can have one of the following values: "Both", "STA", "MTA", "MainSTA", or "Neutral".'
Virtualization = 'A string that can have one of the following values: "enabled" or "disabled".'
Id = 'A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.' />
属性と要素
属性
属性 | 形容 | データ型 | 必須 | 既定値 |
---|---|---|---|---|
ThreadingModel | ランタイム クラスでサポートされるスレッド モデルの型。 | 次のいずれかの値: "Both"、"STA"、"MTA"、"MainSTA"、"Neutral" | はい | |
仮想化 | クラスを読み込むときに仮想化を使用するかどうかを指定します。 | 次のいずれかの値: "enabled" 、 "disabled" | はい | |
ID | 参照されている クラス の ID。 | xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 形式の GUID。 | はい |
子要素
何一つ。
親要素
Parent 要素 | 形容 |
---|---|
com4:InProcessServer | インプロセス サーバーを 1 つまたは複数のクラス登録に登録します。 |
備考
次の例は、同じクラスのアウトプロセスおよびインプロセス サーバー実装を登録する方法を示しています。
<com4:Class Id="f4ed7720-9b3a-44a4-xxxx-xxxxxxxxxxxx" DisplayName="CLSID_Foo"/>
<com:ExeServer Executable="MyServer.exe" DisplayName="My server">
<com4:ClassReference Id="f4ed7720-9b3a-44a4-xxxx-xxxxxxxxxxxx"/>
</com:ExeServer>
<com4:InProcessServer Path="MyServer.dll">
<com4:ClassReference Id="f4ed7720-9b3a-44a4-xxxx-xxxxxxxxxxxx"/>
</com4:InProcessServer>
必要条件
アイテム | 価値 |
---|---|
名前空間の | http://schemas.microsoft.com/appx/manifest/com/windows10/4 |
最小 OS バージョン | Windows 10 (ビルド 20348) |