Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A registration that corresponds to a CLSID registration with the TreatAs subkey.
Element hierarchy
<com3:TreatAsClass>
Syntax
<com3:TreatAsClass
Id = 'A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.'
DisplayName = 'An optional string between 1 and 256 characters in length. This string is localizable.'
TreatAs = 'A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.' />
Attributes and elements
Attributes
| Attribute | Description | Data type | Required | Default value |
|---|---|---|---|---|
| Id | Corresponds to the CLSID of the COM class object. | A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. | Yes | |
| DisplayName | An optional string representing the default value of the CLSID key. | An optional string between 1 and 256 characters in length. This string is localizable. | No | |
| TreatAs | Specifies the CLSID of a class that can emulate the current class. | A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. | Yes |
Child elements
None.
Parent elements
| Parent element | Description |
|---|---|
| com2:ComServer | Declares a package extension point of type windows.comServer. The comServer extension may include the following types of registrations: ServiceServer, ExeServer, SurrogateServer, ProgId, or TreatAsClass. |
Requirements
| Item | Value |
|---|---|
| Namespace | http://schemas.microsoft.com/appx/manifest/com/windows10/3 |
| Minimum OS Version | Windows 10 version 2004 (Build 19041) |