NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Namespaces and COM Objects

In this release of the NGWS runtime, a COM class' metadata is placed in a namespace with the same name as that of the type library the metadata was created from. For example, if you convert a type library named Server1 to a metadata file named MyServer.dll and that type library contains a class named MyCOMObj, the namespace created would be named Server1, and the class' fully resolved name would be Server1.MyCOMObj. You can change the name of the namespace by using the /out option on TlbImp.

For example, if Corpath=C:\bin, creating a C:\bin\classic subfolder and placing the DLL containing the Server1 type library in it changes the fully resolved name of the MyCOMObj class to Classic.Server1.MyCOMObj.

Renaming the subfolder C:\bin\classic to c:\bin\modern changes the namespace name to Modern.Server1. Therefore, the MyCOMObj class' fully resolved name changes to Modern.Server1.MyCOMObj.