com:TreatAsClass

A registration that corresponds to a CLSID registration with the TreatAs subkey.

Element hierarchy

<Package>

    <Applications>

         <Application>

              <Extensions>

                   <com:Extension>

                        <com:ComServer>

                             <com:TreatAsClass>

Syntax

<com:TreatAsClass 
    Id = 'A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.'
    DisplayName = 'An optional string with a value between 1 and 256 characters in length. This string is localizable.'
    TreatAs = 'A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.' />

Key

?   optional (zero or more)

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. A 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
com:ComServer Declares a package extension point of type windows.comServer. The comServer extension may include four types of registrations: ExeServer, SurrogateServer, ProgId, or TreatAsClass.

Requirements

Item Value
Namespace http://schemas.microsoft.com/appx/manifest/com/windows10
Minimum OS Version Windows 10 version 1703 (Build 15063)