System.Web Namespace HttpServerUtility Class
Creates a server instance of a COM object.
1. Creates a server instance of a COM object identified by the object's Programmatic Identifier ( ProgID ).
2. Creates a server instance of a COM object identified by the object's type.
The following example creates an object using the object's ProgID.
NOTE: This example shows how to use one of the overloaded versions of CreateObject. For other examples that might be available, see the individual overload topics.
[ VB ]
Dim myObject As Object
myObject = Server.CreateObject ( "Acme.Component.3" )
[ C# ]
Object myObject;
myObject = Server.CreateObject ( "Acme.Component.3" );
HttpServerUtility Members