com:TreatAsClass

Description

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? = A string between 1 and 256 characters in length. This string is localizable.    
    TreatAs = A GUID in the form xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. >
</com:TreatAsClass>

Key

? optional (zero or more)

Attributes

Attribute Description Data type Required
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

Remarks

Examples

Requirements

Namespace

http://schemas.microsoft.com/appx/manifest/com/windows10